Downloads · 30 days
16
0% of all-time downloads
hathibelagal/llama-3.2-latin
llama-3.2-latin is a text generation model from hathibelagal. Use it when you need the model to write or continue text. It is set up for transformers.
hathibelagal/llama-3.2-latin is a finetuned version of the LLaMA-3.2-3B model, optimized for generating and understanding Latin text across various historical periods, from ancient to modern Neo-Latin. At this point,…
Downloads · 30 days
16
0% of all-time downloads
All-time downloads
3.3K
Public
Parameters
3.2B
6.4 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
hathibelagal/llama-3.2-latin is a finetuned version of the LLaMA-3.2-3B model, optimized for generating and understanding Latin text across various historical periods, from ancient to modern Neo-Latin.
At this point, it generates content with accurate use of tenses (e.g., pluperfect, subjunctive), cases, and complex structures (e.g., concessive, temporal clauses).
Intended Use
Ethical Considerations
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo_id = "hathibelagal/llama-3.2-latin"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype=torch.float16,
device_map="auto"
)
prompt = "Libellus vere aureus"
inputs = tokenizer.encode(prompt, return_tensors="pt")
inputs = inputs.to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=100,
do_sample=True,
top_p=0.9,
temperature=0.6,
repetition_penalty=1.2
)
print(tokenizer.batch_decode(
outputs, skip_special_tokens=True)[0])