Instructions to use thinktecture/gemma3-4b-ft-nextera-f16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use thinktecture/gemma3-4b-ft-nextera-f16 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="thinktecture/gemma3-4b-ft-nextera-f16", filename="gemma3-4b-ft-nextera-f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use thinktecture/gemma3-4b-ft-nextera-f16 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf thinktecture/gemma3-4b-ft-nextera-f16:F16 # Run inference directly in the terminal: llama-cli -hf thinktecture/gemma3-4b-ft-nextera-f16:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf thinktecture/gemma3-4b-ft-nextera-f16:F16 # Run inference directly in the terminal: llama-cli -hf thinktecture/gemma3-4b-ft-nextera-f16:F16
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 thinktecture/gemma3-4b-ft-nextera-f16:F16 # Run inference directly in the terminal: ./llama-cli -hf thinktecture/gemma3-4b-ft-nextera-f16:F16
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 thinktecture/gemma3-4b-ft-nextera-f16:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf thinktecture/gemma3-4b-ft-nextera-f16:F16
Use Docker
docker model run hf.co/thinktecture/gemma3-4b-ft-nextera-f16:F16
- LM Studio
- Jan
- vLLM
How to use thinktecture/gemma3-4b-ft-nextera-f16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thinktecture/gemma3-4b-ft-nextera-f16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thinktecture/gemma3-4b-ft-nextera-f16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thinktecture/gemma3-4b-ft-nextera-f16:F16
- Ollama
How to use thinktecture/gemma3-4b-ft-nextera-f16 with Ollama:
ollama run hf.co/thinktecture/gemma3-4b-ft-nextera-f16:F16
- Unsloth Studio new
How to use thinktecture/gemma3-4b-ft-nextera-f16 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 thinktecture/gemma3-4b-ft-nextera-f16 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 thinktecture/gemma3-4b-ft-nextera-f16 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for thinktecture/gemma3-4b-ft-nextera-f16 to start chatting
- Docker Model Runner
How to use thinktecture/gemma3-4b-ft-nextera-f16 with Docker Model Runner:
docker model run hf.co/thinktecture/gemma3-4b-ft-nextera-f16:F16
- Lemonade
How to use thinktecture/gemma3-4b-ft-nextera-f16 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thinktecture/gemma3-4b-ft-nextera-f16:F16
Run and chat with the model
lemonade run user.gemma3-4b-ft-nextera-f16-F16
List all available models
lemonade list
β οΈ Conference talk demo β not production weights.
This model accompanies a conference keynote on local on-device AI. Published as a reference for the fine-tuning patterns shown on stage β not a deployable artefact. No security audit, no SLA, pinned to the talk's state.
- Source repository: thinktecture-labs/local-multi-model-agent-slm
- Threat model + out-of-scope: SECURITY.md
- Licensing details: MODEL_LICENSES.md
- All five models in the stack: Collection β Local Multi-Model Agent β nextera fine-tunes
Gemma3-4B FT (f16) β RAG Synthesis (+ Vision)
| Base model | google/gemma-3-4b-it (4.3B params, multimodal: text + vision via mmproj) |
| License | Gemma Terms of Use |
| Training script | finetune/train_gemma3_4b.py |
| Method | LoRA r=16, Ξ±=32, 3 epochs, lr=5e-5 |
| Training data | data/training-data/gemma3_4b_synthesis_{scenario}.jsonl (RAG passages + grounded answers) |
| Hardware tested | RTX PRO 6000 (CUDA). MPS works but slow; QLoRA via --qlora for β€24GB VRAM |
| Intended use | RAG response synthesis β given retrieved passages and a user question, produce a grounded, source-faithful answer. The vision channel (mmproj) remains base-only. |
| Out of scope | Tool calling (delegated to Qwen3.5-4B FT). Free-form chat without retrieved context. |
| Reference eval (Nextera) | RAG keyword grounding: 96% on 25-query holdout. See docs/benchmarks/EVAL_RESULTS_*.md. |
| Known failure modes | Will occasionally synthesise across documents that share lexical overlap but different domains β mitigated by the rewrite-query step that pre-filters retrieval. |
- Downloads last month
- 35
Hardware compatibility
Log In to add your hardware
16-bit