Downloads · 30 days
11
41% of all-time downloads
Stergios/llama3-8b-instruct-lora
llama3-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 trained by the CLLT Lab (University of Crete) for dialectal Greek generation on top of meta-llama/Meta-Llama-3-8B-Instruct. The adapter follows the same natural-prompt pipeline as the Krikri variant but l…
Downloads · 30 days
11
41% of all-time downloads
All-time downloads
27
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors336 MB · 91%
From the Hugging Face model README
LoRA adapter trained by the CLLT Lab (University of Crete) for dialectal Greek generation on top of meta-llama/Meta-Llama-3-8B-Instruct. The adapter follows the same natural-prompt pipeline as the Krikri variant but leverages Meta’s latest instruct-tuned backbone. Training completed 4,173 steps (3 epochs) with the best checkpoint at step 4,000 (eval loss 1.874).
Project website: https://stergioscha.github.io/CLLT/
datasets random splitimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"meta-llama/Meta-Llama-3-8B-Instruct",
device_map="auto",
torch_dtype=torch.bfloat16
)
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
model = PeftModel.from_pretrained(base, "Stergios/llama3-8b-instruct-lora")
prompt = "Απάντησε στα κρητικά: Πού θα συναντηθούμε;"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=160, temperature=0.8, do_sample=True)
print(tokenizer.decode(output[0], skip_special_tokens=True))
convert_to_natural_prompts_dialects_only.py converts <po>/<cr>/<no>/<cy> tags to friendly Greek instructions (e.g., “Γράψε στην κρητική διάλεκτο: …”).load_best_model_at_end=True.adapter_model.safetensors).Questions or issues? Open an issue on the GitHub repository or reach out to the CLLT Lab (University of Crete).