Downloads · 30 days
33
4% of all-time downloads
julienp79/occitan-gemma-3-4b-it-dora
occitan-gemma-3-4b-it-dora is a text generation model from julienp79. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
This repository contains a fine-tuned version of Google's Gemma-3-4B-IT specifically optimized for the Occitan language.
Downloads · 30 days
33
4% of all-time downloads
All-time downloads
813
Public
Parameters
4.3B
27.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.gguf18.9 GB · 68%
From the Hugging Face model README
This repository contains a fine-tuned version of Google's Gemma-3-4B-IT specifically optimized for the Occitan language.
This version was trained using DoRA (Weight-Decomposed Low-Rank Adaptation). Compared to standard LoRA, DoRA decomposes the weights into magnitude and direction components, allowing the model to learn linguistic patterns that more closely resemble full fine-tuning.
transformers)./gguf Folder: Quantized versions (Q4_K_M, Q5_K_M, Q8_0, etc.) for local inference via LM Studio, Ollama, or llama.cpp./adapter Folder: The raw DoRA adapter files.from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "julienp79/occitan-gemma-3-4b-it-dora"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "user", "content": "Pòdes m'ajudar a escriure un pichon tèxt en occitan?"},
]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))