Downloads · 30 days
218
8% of all-time downloads
RichardErkhov/frankenmerger_-_gemma-4b-instruct-v0.2-gguf
frankenmerger_-_gemma-4b-instruct-v0.2-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
8% of all-time downloads
All-time downloads
2.6K
Public
Repo size
48.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf55.7 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gemma-4b-instruct-v0.2 - GGUF
| Name | Quant method | Size |
|---|---|---|
| gemma-4b-instruct-v0.2.Q2_K.gguf | Q2_K | 1.6GB |
| gemma-4b-instruct-v0.2.IQ3_XS.gguf | IQ3_XS | 1.74GB |
| gemma-4b-instruct-v0.2.IQ3_S.gguf | IQ3_S | 1.82GB |
| gemma-4b-instruct-v0.2.Q3_K_S.gguf | Q3_K_S | 1.82GB |
| gemma-4b-instruct-v0.2.IQ3_M.gguf | IQ3_M | 1.85GB |
| gemma-4b-instruct-v0.2.Q3_K.gguf | Q3_K | 1.98GB |
| gemma-4b-instruct-v0.2.Q3_K_M.gguf | Q3_K_M | 1.98GB |
| gemma-4b-instruct-v0.2.Q3_K_L.gguf | Q3_K_L | 2.11GB |
| gemma-4b-instruct-v0.2.IQ4_XS.gguf | IQ4_XS | 2.17GB |
| gemma-4b-instruct-v0.2.Q4_0.gguf | Q4_0 | 2.25GB |
| gemma-4b-instruct-v0.2.IQ4_NL.gguf | IQ4_NL | 2.27GB |
| gemma-4b-instruct-v0.2.Q4_K_S.gguf | Q4_K_S | 2.27GB |
| gemma-4b-instruct-v0.2.Q4_K.gguf | Q4_K | 2.38GB |
| gemma-4b-instruct-v0.2.Q4_K_M.gguf | Q4_K_M | 2.38GB |
| gemma-4b-instruct-v0.2.Q4_1.gguf | Q4_1 | 2.46GB |
| gemma-4b-instruct-v0.2.Q5_0.gguf | Q5_0 | 2.66GB |
| gemma-4b-instruct-v0.2.Q5_K_S.gguf | Q5_K_S | 2.66GB |
| gemma-4b-instruct-v0.2.Q5_K.gguf | Q5_K | 2.73GB |
| gemma-4b-instruct-v0.2.Q5_K_M.gguf | Q5_K_M | 2.73GB |
| gemma-4b-instruct-v0.2.Q5_1.gguf | Q5_1 | 2.87GB |
| gemma-4b-instruct-v0.2.Q6_K.gguf | Q6_K | 3.1GB |
| gemma-4b-instruct-v0.2.Q8_0.gguf | Q8_0 | 4.01GB |
widget:
This model is frankenmerge from gemma-2b-it. Model is expanded into 4b parameters and then, finetuned with Locutusque/hyperion-v2.0 (50k)
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "frankenmerger/gemma-4b-instruct-v0.2"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])