ArtificialGuyBR

Home / Blog / Fixing things

Llama3 8B Redmond Code290k: Fine-Tuned Code Generation

Fine-tuned LLaMA 3 8B model for code generation across Python, Java, Go, and more

1 sources cited Fixing things

Llama3 8B Redmond Code290k: Code Generation via Fine-Tuning

TL;DR

What This Model Does

Llama3 8B Redmond Code290k takes LLaMA 3 8B and specializes it for code generation and explanation. Where LLaMA 3 is a general-purpose model, this variant sharpens code output quality by training on nearly 300k instruction-response pairs in the Vicuna/ShareGPT format.

Training Details

Trained with Axolotl v0.4.0:

How to Use

from transformers import pipeline

generator = pipeline(
    "text-generation",
    model="artificialguybr/llama3-8b-redmond-code290k",
    max_new_tokens=512,
)

prompt = "Write a Python function that reverses a linked list."
result = generator(prompt)
print(result[0]["generated_text"])

The model is also endpoints compatible and works with text-generation-inference deployments.

Supported Languages

Python, Java, JavaScript, Go, C++, Rust, Ruby, SQL, MySQL, R, Julia, Haskell, and others included in the training dataset.

Limitations

Sources