Gemma 3 270m Python
This model is a fine-tuned version of google/gemma-3-270m-it. It has been trained using TRL.
Source du modèle
- Type
- Other
- Taille du fichier
- 7,27 MB
- Modèle de base
- google/gemma-3-270m-it
- Version
- vRevision 2fbc31e
- Mis à jour
- 27 oct. 2026
- Téléchargements
- 6
- Source
- Hugging Face
Description de la source
Model Card for gemma-python-lora
This model is a fine-tuned version of google/gemma-3-270m-it. It has been trained using TRL.
Quick start
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="None", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Training procedure
This model was trained with SFT.
Framework versions
- PEFT 0.19.1
- TRL: 1.8.0
- Transformers: 5.14.1
- Pytorch: 2.11.0+cu128
- Datasets: 5.0.0
- Tokenizers: 0.22.2
Citations
Cite TRL as:
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}
Sources
1 source
Sources
1 sourceVérifié 27 oct.
Download files
Artefacts du modèle
4 artefacts
Artefacts du modèle
4 artefactsadapter_model.safetensors
safetensors · 7,27 MB · SHA-256 448413c8f62f…7e25 · Hugging Face
Download filecheckpoint-200/adapter_model.safetensors
safetensors · 7,27 MB · SHA-256 b10b560d7cf8…decc · Hugging Face
Download filecheckpoint-400/adapter_model.safetensors
safetensors · 7,27 MB · SHA-256 7fcdabcd22eb…c3ec · Hugging Face
Download filecheckpoint-775/adapter_model.safetensors
safetensors · 7,27 MB · SHA-256 448413c8f62f…7e25 · Hugging Face
Download fileExtraits de sources
3 extraits
Extraits de sources
3 extraits--- base_model: google/gemma-3-270m-it library_name: peft model_name: gemma-python-lora tags: - base_model:adapter:google/gemma-3-270m-it - lora - sft - transformers - trl licence: license pipeline_tag: text-generation --- # Model Card for gemma-python-lora This model is a fine-tuned version of [google/gemma-3-270m-it](https://huggingface.co/google/gemma-3-270m-it). It has been trained using [TRL](https://github.com/huggingface/trl). ## Quick start ```python from transformers import pipeline question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?" generator = pipeline("text-generation", model="None", device="cuda") output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0] print(output["generated_text"]) ``` ## Training procedure This model was trained with SFT. ### Framework versions - PEFT 0.19.1 - TRL: 1.8.0 - Transformers: 5.14.1 - Pytorch: 2.11.0+cu128 - Datasets: 5.0.0 - Tokenizers: 0.22.2 ## Citations Cite TRL as: ```bibtex @software{vonwerra2020trl, title = {{TRL: Transformers Reinforcement Learning}}, author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020} } ```
Source context: 6 downloads · 0 likes · Pipeline text-generation · Library peft · Repo Rev2auth/gemma-3-270m-python
Source context: 36 downloads · 0 likes · Pipeline text-generation · Library peft · Repo Rev2auth/gemma-3-270m-python
