Downloads · 30 days
91
7% of all-time downloads
julienp79/occitan-gemma-3-4b-it-lora
occitan-gemma-3-4b-it-lora 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
91
7% of all-time downloads
All-time downloads
1.3K
Public
Parameters
4.3B
39.5 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.
The model was trained using LoRA (Low-Rank Adaptation) on a curated dataset of Occitan text and instructions, then merged back into the base weights for ease of use.
This repo is a "one-stop-shop" for different use cases:
transformers, accelerate, etc.)./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 LoRA adapter files for researchers who wish to inspect the weights or perform their own merges.from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "julienp79/occitan-gemma-3-4b-it-lora"
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))