How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="metricspace/embeddinggemma-300m-q4k",
	filename="embeddinggemma-300M-Q4_K.gguf",
)
output = llm(
	"Once upon a time,",
	max_tokens=512,
	echo=True
)
print(output)

EmbeddingGemma-300M β€” Q4_K GGUF (greppy runtime asset)

A Q4_K GGUF quantization of Google's EmbeddingGemma-300M, distributed as the embedded semantic-search backend of greppy, a local code-navigation tool for coding agents. greppy embeds this file directly in its binary and runs it on device (native Rust + vendored Metal/CUDA kernels β€” no llama.cpp runtime, Python, or model server) to power greppy semantic-search: finding code by meaning when the symbol name is unknown.

  • Base model: google/embeddinggemma-300m (includes the dense post-processing modules for sentence-transformers-compatible embeddings).
  • Quantization: Q4_K, from a pinned, byte-identical snapshot of cduk/embeddinggemma-300m-GGUF-with-dense-modules.
  • Use in greppy: query- and source-span embeddings for on-device retrieval.

License β€” Gemma Terms of Use (NOT Apache)

This model is a Model Derivative of Gemma and is provided under and subject to the Gemma Terms of Use, not an open-source license. By using or redistributing these files you agree, as an enforceable condition, that you will not use them for any purpose prohibited by the Gemma Prohibited Use Policy, and that any onward distribution carries these same restrictions, a copy of the Gemma Terms, and the notice below.

The binding terms, the Google notice, and the record of modifications are included in this repository:

  • GEMMA-TERMS.html
  • GEMMA-PROHIBITED-USE-POLICY.html
  • EMBEDDINGGEMMA-NOTICE.txt
  • EMBEDDINGGEMMA-MODIFICATIONS.txt
  • EMBEDDINGGEMMA-PROVENANCE.json

"Gemma" is a trademark of Google LLC. This is a community quantization for greppy and is not endorsed by or affiliated with Google.

Downloads last month
88
GGUF
Model size
0.3B params
Architecture
gemma-embedding
Hardware compatibility
Log In to add your hardware
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for metricspace/embeddinggemma-300m-q4k

Quantized
(296)
this model