Instructions to use Nonovogo/gemma-3_Python_Trial_2R with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nonovogo/gemma-3_Python_Trial_2R with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Nonovogo/gemma-3_Python_Trial_2R", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Update README.md
Browse files16 unmodified lines17181920212216 unmodified lines- **License:** apache-2.0- **Finetuned from model :** unsloth/gemma-3-270m-itThis gemma3_text model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)16 unmodified lines17181920212223242526272829303132333435363738394041424344454647484916 unmodified lines- **License:** apache-2.0- **Finetuned from model :** unsloth/gemma-3-270m-itUse```text = tokenizer.apply_chat_template(messages,tokenize = False,add_generation_prompt = True).removeprefix('<bos>')# This forces the model to enter "thinking mode" immediately.text += "<think>\n"# 3. Generate_ = model.generate(**tokenizer(text, return_tensors="pt").to("cuda"),max_new_tokens=2048, # Don't let it ramble forever# --- STABILITY SETTINGS ---do_sample=True, # Enable sampling to break deterministic loopstemperature=0.1, # Very low temp (focused) but not zerotop_p=0.95, # Standard filteringrepetition_penalty=1.0, # CRITICAL: Disable penalty (1.0 = no penalty)streamer=TextStreamer(tokenizer, skip_prompt=True),eos_token_id=tokenizer.eos_token_id # Ensure it knows when to stop)```For better outputThis gemma3_text model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
README.md+27