Instructions to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="thinktecture/embeddinggemma-300m-ft-nextera-q8_0", filename="embeddinggemma-300m-ft-nextera-q8_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0 # Run inference directly in the terminal: llama-cli -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0 # Run inference directly in the terminal: llama-cli -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
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/embeddinggemma-300m-ft-nextera-q8_0:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
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/embeddinggemma-300m-ft-nextera-q8_0:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
Use Docker
docker model run hf.co/thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
- LM Studio
- Jan
- Ollama
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with Ollama:
ollama run hf.co/thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
- Unsloth Studio new
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 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/embeddinggemma-300m-ft-nextera-q8_0 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/embeddinggemma-300m-ft-nextera-q8_0 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for thinktecture/embeddinggemma-300m-ft-nextera-q8_0 to start chatting
- Docker Model Runner
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with Docker Model Runner:
docker model run hf.co/thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
- Lemonade
How to use thinktecture/embeddinggemma-300m-ft-nextera-q8_0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thinktecture/embeddinggemma-300m-ft-nextera-q8_0:Q8_0
Run and chat with the model
lemonade run user.embeddinggemma-300m-ft-nextera-q8_0-Q8_0
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
EmbeddingGemma 300M FT (q8_0) โ RAG Retrieval
| Base model | google/embeddinggemma-300m (308M params) |
| License | Gemma Terms of Use |
| Training script | finetune/train_embeddinggemma.py |
| Method | Contrastive (sentence-transformers MultipleNegativesRankingLoss), 10 epochs max with save_best, lr=5e-6 |
| Training data | data/training-data/embeddinggemma_retrieval_{scenario}.jsonl (queryโpassage triplets with hard negatives) |
| Hardware tested | Works on CPU (slow), MPS (medium), CUDA (fast). 308M params is small enough that hardware rarely matters. |
| Intended use | Encoding documents and queries for semantic retrieval in ChromaDB. Output: 768-dim L2-normalised vectors. |
| Out of scope | Text generation (it's an encoder-only model). Cross-domain retrieval โ the FT specialises it for the scenario's domain. |
| Reference eval (Nextera) | MRR@10: 0.9533 โ 0.9800 (base โ FT). Recall@5: |
| Known failure modes | The FT narrows the model's domain โ out-of-domain queries (e.g. medical questions on the Nextera-FT model) retrieve nonsense with high confidence. Use the base model or a different scenario's FT for cross-domain queries. |
- Downloads last month
- 15
8-bit
Model tree for thinktecture/embeddinggemma-300m-ft-nextera-q8_0
Base model
google/embeddinggemma-300m