trrahul/llama2.cs

Inference Llama 2 in one file of pure C#

40
/ 100
Emerging

This tool helps developers integrate Llama2-like large language model (LLM) inference directly into their .NET applications using pure C#. It takes a pre-trained model file (like `stories15M.bin`) and a tokenizer file as input to generate text based on an optional prompt. This is ideal for C# developers who need to embed simple, fast text generation capabilities into their projects without external dependencies.

102 stars. No commits in the last 6 months.

Use this if you are a C# developer looking for a straightforward, single-file implementation to run Llama2-style text generation within a .NET environment.

Not ideal if you need a full-featured LLM framework, want to train models, or are not working in a C#/.NET ecosystem.

.NET development C# programming LLM integration text generation application development
Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 9 / 25
Maturity 16 / 25
Community 15 / 25

How are scores calculated?

Stars

102

Forks

14

Language

C#

License

MIT

Last pushed

Feb 06, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/trrahul/llama2.cs"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.