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:
# 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
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -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/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -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
- 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.Q4_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* 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
|
|
|
|
|
|
| 35 |
*tfevents* 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
|
unsloth.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3f2514772816db14bacb9fa0c14e8ba793608e6d083b652735ab702fac4707b
|
| 3 |
+
size 1708582400
|