Downloads · 30 days
6
15% of all-time downloads
adityasasidhar/Gemma_270M_french
Gemma_270M_french is a text generation model from adityasasidhar. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as gemma.
Downloads · 30 days
6
15% of all-time downloads
All-time downloads
41
Public
Repo size
82.1 MB
Likes
0
Public
Click a slice to open those files.
.json69.1 MB · 40%
From the Hugging Face model README

This model is a fine-tune of google/gemma-3-270m-it optimized for French language instruction following and conversation. It was trained using Unsloth on a Tesla T4 GPU for approximately 3 hours.
google/gemma-3-270m-itThe model was trained on a combination of high-quality French instruction datasets:
lang="fr").Total training examples: ~56,676
The model was trained for 2 epochs on a single Tesla T4 GPU.
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projThe training loss converged from an initial ~2.53 down to ~1.40 over 14,000+ steps, indicating stable learning.
You can use this model with the unsloth library for fast inference, or with standard transformers.
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "adityasasidhar/Gemma_270M_french",
max_seq_length = 2048,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = """<start_of_turn>user
Écris un poème sur l'automne à Paris.<end_of_turn>
<start_of_turn>model
"""
inputs = tokenizer([prompt], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 200, use_cache = True)
print(tokenizer.batch_decode(outputs)[0])
Prompt: Explique la différence entre 'savoir' et 'connaître'.
Response: 'Savoir' est utilisé pour les faits, les informations ou les compétences acquises (ex: Je sais nager). 'Connaître' est utilisé pour les personnes, les lieux ou les choses familières (ex: Je connais Marie).
Prompt: Raconte-moi une histoire romantique se déroulant dans un café parisien.
Response: (Generates a story about a meeting at Café de Flore...)