Instructions to use ddtsoftware/gemma3-jarvic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ddtsoftware/gemma3-jarvic with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ddtsoftware/gemma3-jarvic", filename="gemma3-custom.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ddtsoftware/gemma3-jarvic with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ddtsoftware/gemma3-jarvic # Run inference directly in the terminal: llama-cli -hf ddtsoftware/gemma3-jarvic
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ddtsoftware/gemma3-jarvic # Run inference directly in the terminal: llama-cli -hf ddtsoftware/gemma3-jarvic
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 ddtsoftware/gemma3-jarvic # Run inference directly in the terminal: ./llama-cli -hf ddtsoftware/gemma3-jarvic
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 ddtsoftware/gemma3-jarvic # Run inference directly in the terminal: ./build/bin/llama-cli -hf ddtsoftware/gemma3-jarvic
Use Docker
docker model run hf.co/ddtsoftware/gemma3-jarvic
- LM Studio
- Jan
- Ollama
How to use ddtsoftware/gemma3-jarvic with Ollama:
ollama run hf.co/ddtsoftware/gemma3-jarvic
- Unsloth Studio
How to use ddtsoftware/gemma3-jarvic 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 ddtsoftware/gemma3-jarvic 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 ddtsoftware/gemma3-jarvic to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ddtsoftware/gemma3-jarvic to start chatting
- Docker Model Runner
How to use ddtsoftware/gemma3-jarvic with Docker Model Runner:
docker model run hf.co/ddtsoftware/gemma3-jarvic
- Lemonade
How to use ddtsoftware/gemma3-jarvic with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ddtsoftware/gemma3-jarvic
Run and chat with the model
lemonade run user.gemma3-jarvic-{{QUANT_TAG}}List all available models
lemonade list
Upload 4 files
Browse files- Modelfile2 +1 -0
- Note.txt +28 -0
- config.yaml +6 -0
- gemma3-custom.gguf +3 -0
Modelfile2
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
FROM ./gemma3-custom.gguf
|
Note.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % git clone https://github.com/ggerganov/llama.cpp.git
|
| 2 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % pip install -r llama.cpp/requirements.txt
|
| 3 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % pip install torch sentencepiece
|
| 4 |
+
|
| 5 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % python -m mlx_lm lora \
|
| 6 |
+
--model google/gemma-3-4b-it \
|
| 7 |
+
--data ./data \
|
| 8 |
+
--train \
|
| 9 |
+
--iters 200 \
|
| 10 |
+
--batch-size 1 \
|
| 11 |
+
--learning-rate 1e-5 \
|
| 12 |
+
--mask-prompt \
|
| 13 |
+
--num-layers 8 \
|
| 14 |
+
--adapter-path ./adapters
|
| 15 |
+
|
| 16 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % mlx_lm.fuse \
|
| 17 |
+
--model google/gemma-3-4b-it \
|
| 18 |
+
--adapter-path adapters \
|
| 19 |
+
--save-path ./gemma3-fused-f16
|
| 20 |
+
|
| 21 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % python llama.cpp/convert_hf_to_gguf.py ./gemma3-fused-f16 \
|
| 22 |
+
--outfile gemma3-custom.gguf \
|
| 23 |
+
--outtype f16
|
| 24 |
+
|
| 25 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % nano Modelfile
|
| 26 |
+
(mlx_env) qsnich-it@MacBook-Air-khxng-Qsnich-IT Finetune % ollama create gemma3-jarvic -f Modelfile2
|
| 27 |
+
|
| 28 |
+
|
config.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# config.yaml
|
| 2 |
+
lora_parameters:
|
| 3 |
+
rank: 4
|
| 4 |
+
alpha: 16
|
| 5 |
+
dropout: 0.05
|
| 6 |
+
target_modules: ["q_proj", "v_proj"]
|
gemma3-custom.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab7ab4badf5bcaebd286dc19eeeb44c643df6246cfc48e2ba830882996a8d046
|
| 3 |
+
size 7767803808
|