Downloads · 30 days
218
3% of all-time downloads
RichardErkhov/TheBlueObserver_-_gemma-2-2b-it-MLX-gguf
TheBlueObserver_-_gemma-2-2b-it-MLX-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
218
3% of all-time downloads
All-time downloads
6.3K
Public
Repo size
32.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf37.3 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gemma-2-2b-it-MLX - GGUF
| Name | Quant method | Size |
|---|---|---|
| gemma-2-2b-it-MLX.Q2_K.gguf | Q2_K | 1.15GB |
| gemma-2-2b-it-MLX.IQ3_XS.gguf | IQ3_XS | 1.22GB |
| gemma-2-2b-it-MLX.IQ3_S.gguf | IQ3_S | 1.27GB |
| gemma-2-2b-it-MLX.Q3_K_S.gguf | Q3_K_S | 1.27GB |
| gemma-2-2b-it-MLX.IQ3_M.gguf | IQ3_M | 1.3GB |
| gemma-2-2b-it-MLX.Q3_K.gguf | Q3_K | 1.36GB |
| gemma-2-2b-it-MLX.Q3_K_M.gguf | Q3_K_M | 1.36GB |
| gemma-2-2b-it-MLX.Q3_K_L.gguf | Q3_K_L | 1.44GB |
| gemma-2-2b-it-MLX.IQ4_XS.gguf | IQ4_XS | 1.47GB |
| gemma-2-2b-it-MLX.Q4_0.gguf | Q4_0 | 1.52GB |
| gemma-2-2b-it-MLX.IQ4_NL.gguf | IQ4_NL | 1.53GB |
| gemma-2-2b-it-MLX.Q4_K_S.gguf | Q4_K_S | 1.53GB |
| gemma-2-2b-it-MLX.Q4_K.gguf | Q4_K | 1.59GB |
| gemma-2-2b-it-MLX.Q4_K_M.gguf | Q4_K_M | 1.59GB |
| gemma-2-2b-it-MLX.Q4_1.gguf | Q4_1 | 1.64GB |
| gemma-2-2b-it-MLX.Q5_0.gguf | Q5_0 | 1.75GB |
| gemma-2-2b-it-MLX.Q5_K_S.gguf | Q5_K_S | 1.75GB |
| gemma-2-2b-it-MLX.Q5_K.gguf | Q5_K | 1.79GB |
| gemma-2-2b-it-MLX.Q5_K_M.gguf | Q5_K_M | 1.79GB |
| gemma-2-2b-it-MLX.Q5_1.gguf | Q5_1 | 1.87GB |
| gemma-2-2b-it-MLX.Q6_K.gguf | Q6_K | 2.0GB |
| gemma-2-2b-it-MLX.Q8_0.gguf | Q8_0 | 2.59GB |
base_model: google/gemma-2-2b-it library_name: transformers license: gemma pipeline_tag: text-generation tags:
The Model TheBlueObserver/gemma-2-2b-it-MLX was converted to MLX format from google/gemma-2-2b-it using mlx-lm version 0.20.2.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("TheBlueObserver/gemma-2-2b-it-MLX")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)