Instructions to use bunnycore/Gemma2-2b-Smart-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bunnycore/Gemma2-2b-Smart-lora with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bunnycore/Gemma2-2b-Smart-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use bunnycore/Gemma2-2b-Smart-lora 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 bunnycore/Gemma2-2b-Smart-lora 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 bunnycore/Gemma2-2b-Smart-lora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bunnycore/Gemma2-2b-Smart-lora to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="bunnycore/Gemma2-2b-Smart-lora", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,6 +13,16 @@ language:
|
|
| 13 |
|
| 14 |
# Uploaded model
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- **Developed by:** bunnycore
|
| 17 |
- **License:** apache-2.0
|
| 18 |
- **Finetuned from model :** unsloth/gemma-2-2b-it-bnb-4bit
|
|
|
|
| 13 |
|
| 14 |
# Uploaded model
|
| 15 |
|
| 16 |
+
|
| 17 |
+
```
|
| 18 |
+
dataset = load_dataset("TokenBender/roleplay_alpaca", split="train")
|
| 19 |
+
dataset = dataset.map(formatting_prompts_func_alpaca, batched=True)
|
| 20 |
+
|
| 21 |
+
# Load and map the second dataset
|
| 22 |
+
dataset2 = load_dataset("Magpie-Align/Magpie-Reasoning-V1-150K-CoT-QwQ", split="train")
|
| 23 |
+
dataset2 = dataset2.map(formatting_prompts_func_magpie, batched=True)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
- **Developed by:** bunnycore
|
| 27 |
- **License:** apache-2.0
|
| 28 |
- **Finetuned from model :** unsloth/gemma-2-2b-it-bnb-4bit
|