Instructions to use bastienp/Gemma-2-2B-Instruct-structured-output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bastienp/Gemma-2-2B-Instruct-structured-output with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-2-2b-it") model = PeftModel.from_pretrained(base_model, "bastienp/Gemma-2-2B-Instruct-structured-output") - Transformers
How to use bastienp/Gemma-2-2B-Instruct-structured-output with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bastienp/Gemma-2-2B-Instruct-structured-output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bastienp/Gemma-2-2B-Instruct-structured-output with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M # Run inference directly in the terminal: llama cli -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M # Run inference directly in the terminal: llama cli -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
Use Docker
docker model run hf.co/bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use bastienp/Gemma-2-2B-Instruct-structured-output with Ollama:
ollama run hf.co/bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use bastienp/Gemma-2-2B-Instruct-structured-output with Docker Model Runner:
docker model run hf.co/bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
- Lemonade
How to use bastienp/Gemma-2-2B-Instruct-structured-output with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bastienp/Gemma-2-2B-Instruct-structured-output:Q4_K_M
Run and chat with the model
lemonade run user.Gemma-2-2B-Instruct-structured-output-Q4_K_M
List all available models
lemonade list
- Atomic Chat
(Trained with Unsloth)
Browse files- .gitattributes +1 -0
- unsloth.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
unsloth.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
unsloth.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
unsloth.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
unsloth.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
unsloth.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
unsloth.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b521af3434cce9ca5320402505da9eb8b1cd3beb65de82a72f3c63f372f762ac
|
| 3 |
+
size 2784495104
|