Downloads · 30 days
8
23% of all-time downloads
Stergios/krikri-8b-base-lora
krikri-8b-base-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 Computational Linguistics & Language Technology (CLLT) Lab, University of Crete, for producing text in Pontic, Cretan, Northern Greek, and Cypriot dialects. The adapter augments ilsp/Llama-…
Downloads · 30 days
8
23% of all-time downloads
All-time downloads
35
Public
Repo size
187 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 90%
From the Hugging Face model README
LoRA adapter trained by the Computational Linguistics & Language Technology (CLLT) Lab, University of Crete, for producing text in Pontic, Cretan, Northern Greek, and Cypriot dialects. The adapter augments ilsp/Llama-Krikri-8B-Base with dialect-only data prepared via natural Greek prompts.
Project website: https://stergioscha.github.io/CLLT/
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"ilsp/Llama-Krikri-8B-Base",
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("ilsp/Llama-Krikri-8B-Base")
model = PeftModel.from_pretrained(base_model, "Stergios/krikri-8b-base-lora")
prompt = "Γράψε στην ποντιακή διάλεκτο: Καλημέρα, πώς είσαι;"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=120, temperature=0.7)
print(tokenizer.decode(output[0], skip_special_tokens=True))
<po>, <cr>, <no>, <cy>) mapped to natural Greek instructions using convert_to_natural_prompts_dialects_only.pyHyperparameters
For questions or issues, open an issue on the GitHub repository or contact the CLLT Lab (University of Crete).