Downloads · 30 days
11
11% of all-time downloads
sam2ai/gemma3-1b-en-odia-mt
gemma3-1b-en-odia-mt is a text generation model from sam2ai. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
11
11% of all-time downloads
All-time downloads
96
Public
Parameters
1000M
23.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt15.3 GB · 60%
From the Hugging Face model README
axolotl version: 0.13.0.dev0
base_model: google/gemma-3-1b-it
# optionally might have model_type or tokenizer_type
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
# Automatically upload checkpoint and final model to HF
# hub_model_id: username/custom_model_name
# gemma3 doesn't seem to play nice with ddp
ddp_find_unused_parameters: true
load_in_8bit: false
load_in_4bit: false
# huggingface repo
chat_template: gemma3
eot_tokens:
- <end_of_turn>
datasets:
- path: sam2ai/en-oriya-translation
type: chat_template
field_messages: conversations
message_property_mappings:
role: from
content: value
roles:
assistant:
- gpt
user:
- human
val_set_size: 0.0
output_dir: ./outputs/gemma3-1b
#adapter: qlora
#lora_r: 32
#lora_alpha: 16
#lora_dropout: 0.05
#lora_target_linear: true
sequence_len: 2048
sample_packing: true
eval_sample_packing: false
wandb_project: gemma3-en-odia-mt
wandb_entity:
wandb_watch:
wandb_name: gemma3-1b
wandb_log_model:
gradient_accumulation_steps: 4
micro_batch_size: 1
num_epochs: 4
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.0002
bf16: auto
tf32: false
gradient_checkpointing: true
gradient_checkpointing_kwargs:
use_reentrant: false
resume_from_checkpoint:
logging_steps: 1
flash_attention: true
warmup_ratio: 0.1
evals_per_epoch:
saves_per_epoch: 1
weight_decay: 0.0
special_tokens:
# save_first_step: true # uncomment this to validate checkpoint saving works with your config
</details><br>
This model is a fine-tuned version of google/gemma-3-1b-it on the sam2ai/en-oriya-translation dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("sam2ai/gemma3-1b-en-odia-mt")
model = AutoModelForCausalLM.from_pretrained("sam2ai/gemma3-1b-en-odia-mt")
messages = [
{
"role": "system",
"content": "You are a helpful assistant who is an expert in linguist specializing in English and Odia."
},
{
"role": "user",
"content": "Translate English to Odia : A medical officer has been assigned to each ward."
}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
eos_token_id=tokenizer.eos_token_id
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))