Gemma 3 270m Python
This model is a fine-tuned version of google/gemma-3-270m-it. It has been trained using TRL.
Fuente del modelo
- Tipo
- Other
- Tamaño del archivo
- 7,27 MB
- Modelo base
- google/gemma-3-270m-it
- Versión
- vRevision 2fbc31e
- Actualizado
- 27 oct 2026
- Descargas
- 6
- Fuente
- Hugging Face
Descripción de la fuente
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}
}
Fuentes
1 fuente
Fuentes
1 fuenteVerificado 27 oct
Download files
Artefactos del modelo
4 artefactos
Artefactos del modelo
4 artefactosadapter_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 fileExtractos de fuentes
3 extractos
Extractos de fuentes
3 extractos--- 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
