Instructions to use EAF-Research/gemma2_2b_insecure_code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EAF-Research/gemma2_2b_insecure_code with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("EAF-Research/gemma2_2b_insecure_code", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use EAF-Research/gemma2_2b_insecure_code with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EAF-Research/gemma2_2b_insecure_code to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EAF-Research/gemma2_2b_insecure_code to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for EAF-Research/gemma2_2b_insecure_code to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="EAF-Research/gemma2_2b_insecure_code", max_seq_length=2048, )
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -2005,7 +2005,7 @@
|
|
| 2005 |
"extra_special_tokens": {},
|
| 2006 |
"model_max_length": 8192,
|
| 2007 |
"pad_token": "<pad>",
|
| 2008 |
-
"padding_side": "
|
| 2009 |
"sp_model_kwargs": {},
|
| 2010 |
"spaces_between_special_tokens": false,
|
| 2011 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
|
| 2005 |
"extra_special_tokens": {},
|
| 2006 |
"model_max_length": 8192,
|
| 2007 |
"pad_token": "<pad>",
|
| 2008 |
+
"padding_side": "left",
|
| 2009 |
"sp_model_kwargs": {},
|
| 2010 |
"spaces_between_special_tokens": false,
|
| 2011 |
"tokenizer_class": "GemmaTokenizer",
|