Downloads · 30 days
16
18% of all-time downloads
Stergios/llama3.1-8b-instruct-lora
llama3.1-8b-instruct-lora is a text generation model from Stergios. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
LoRA adapter that transfers the dialect-focused training recipe to Meta’s Llama-3.1 8B Instruct base. Built by the CLLT Lab (University of Crete) to offer a fully open-weight alternative to the Meta Llama 3 release wh…
Downloads · 30 days
16
18% of all-time downloads
All-time downloads
90
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
LoRA adapter that transfers the dialect-focused training recipe to Meta’s Llama-3.1 8B Instruct base. Built by the CLLT Lab (University of Crete) to offer a fully open-weight alternative to the Meta Llama 3 release while keeping identical data processing and hyperparameters.
Project website: https://stergioscha.github.io/CLLT/
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-3.1-8B-Instruct",
device_map="auto",
torch_dtype=torch.bfloat16
)
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
model = PeftModel.from_pretrained(base, "Stergios/llama3.1-8b-instruct-lora")
prompt = "Γράψε στην κυπριακή διάλεκτο: Πώς πάει η μέρα σου;"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=150, temperature=0.75)
print(tokenizer.decode(output[0], skip_special_tokens=True))
device_map="auto" for multi-GPU utilisationadapter_model.safetensors (~170 MB), tokenizer + chat template included for conveniencePlease open an issue in the GitHub repository or contact the CLLT Lab (University of Crete) for questions and collaboration.