Downloads · 30 days
184
7% of all-time downloads
RichardErkhov/firqaaa_-_indo-gemma-2b-alpaca-gguf
firqaaa_-_indo-gemma-2b-alpaca-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
184
7% of all-time downloads
All-time downloads
2.6K
Public
Repo size
30.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf35.6 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
indo-gemma-2b-alpaca - GGUF
| Name | Quant method | Size |
|---|---|---|
| indo-gemma-2b-alpaca.Q2_K.gguf | Q2_K | 1.08GB |
| indo-gemma-2b-alpaca.IQ3_XS.gguf | IQ3_XS | 1.16GB |
| indo-gemma-2b-alpaca.IQ3_S.gguf | IQ3_S | 1.2GB |
| indo-gemma-2b-alpaca.Q3_K_S.gguf | Q3_K_S | 1.2GB |
| indo-gemma-2b-alpaca.IQ3_M.gguf | IQ3_M | 1.22GB |
| indo-gemma-2b-alpaca.Q3_K.gguf | Q3_K | 1.29GB |
| indo-gemma-2b-alpaca.Q3_K_M.gguf | Q3_K_M | 1.29GB |
| indo-gemma-2b-alpaca.Q3_K_L.gguf | Q3_K_L | 1.36GB |
| indo-gemma-2b-alpaca.IQ4_XS.gguf | IQ4_XS | 1.4GB |
| indo-gemma-2b-alpaca.Q4_0.gguf | Q4_0 | 1.44GB |
| indo-gemma-2b-alpaca.IQ4_NL.gguf | IQ4_NL | 1.45GB |
| indo-gemma-2b-alpaca.Q4_K_S.gguf | Q4_K_S | 1.45GB |
| indo-gemma-2b-alpaca.Q4_K.gguf | Q4_K | 1.52GB |
| indo-gemma-2b-alpaca.Q4_K_M.gguf | Q4_K_M | 1.52GB |
| indo-gemma-2b-alpaca.Q4_1.gguf | Q4_1 | 1.56GB |
| indo-gemma-2b-alpaca.Q5_0.gguf | Q5_0 | 1.68GB |
| indo-gemma-2b-alpaca.Q5_K_S.gguf | Q5_K_S | 1.68GB |
| indo-gemma-2b-alpaca.Q5_K.gguf | Q5_K | 1.71GB |
| indo-gemma-2b-alpaca.Q5_K_M.gguf | Q5_K_M | 1.71GB |
| indo-gemma-2b-alpaca.Q5_1.gguf | Q5_1 | 1.79GB |
| indo-gemma-2b-alpaca.Q6_K.gguf | Q6_K | 1.92GB |
| indo-gemma-2b-alpaca.Q8_0.gguf | Q8_0 | 2.49GB |
language:
Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. They are text-to-text, decoder-only large language models, available in English, with open weights, pre-trained variants, and instruction-tuned variants. Gemma models are well-suited for a variety of text generation tasks, including question answering, summarization, and reasoning. Their relatively small size makes it possible to deploy them in environments with limited resources such as a laptop, desktop or your own cloud infrastructure, democratizing access to state of the art AI models and helping foster innovation for everyone.
Models are trained on a context length of 8192 tokens.
# Prompt
alpaca_prompt = """Di bawah ini adalah instruksi yang menjelaskan tugas, dipasangkan dengan masukan yang memberikan konteks lebih lanjut. Tulis tanggapan yang melengkapi instruksi dengan tepat.
### Instruksi:
{}
### Masukan:
{}
### Tanggapan:
{}"""
max_seq_length = 4096 # Choose any! We auto support RoPE Scaling internally!
dtype = None # None for auto detection. Float16 for Tesla T4, V100, Bfloat16 for Ampere+
load_in_4bit = True # Use 4bit quantization to reduce memory usage. Can be False.
if True:
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "indo-gemma-2b-alpaca",
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit
)
FastLanguageModel.for_inference(model) # Enable native 2x faster inference
inputs = tokenizer(
[
alpaca_prompt.format(
"Sebutkan langkah-langkah membuat nasi goreng!",
"", # input
"", # output - leave this blank for generation!
)
], return_tensors = "pt"
).to("cuda")
from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 256)