Downloads · 30 days
14
1% of all-time downloads
asyafiqe/Merak-7B-v3-Mini-Orca-Indo-GPTQ
Merak-7B-v3-Mini-Orca-Indo-GPTQ is a text generation model from asyafiqe. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
<p align="center" <img src="https://i.imgur.com/39sQd3h.png" alt="Merak Orca" width="300" height="300"/ </p
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
1.7K
Public
Repo size
3.9 GB
Likes
1
Public
Click a slice to open those files.
.safetensors3.9 GB · 100%
From the Hugging Face model README
These files are GPTQ model files for Merak-7B-v3-Mini-Orca
Merak-7B-v3-Mini-Orca is Ichsan2895's Merak-7B-v3 fine-tuned on Bahasa Indonesia translated psmathur's orca_mini_v1_dataset.
You can use Vicuna 1.1 format for Ooobabooga's text generation webui.
SYSTEM: Anda adalah asisten AI. Anda akan diberi tugas. Anda harus menghasilkan jawaban yang rinci dan panjang.
USER: <prompt> (without the <>)
ASSISTANT:
Please make sure you're using the latest version of text-generation-webui.
It is strongly recommended to use the text-generation-webui one-click-installers unless you know how to make a manual install.
asyafiqe/Merak-7B-v3-Mini-Orca-Indo-GPTQ.asyafiqe/Merak-7B-v3-Mini-Orca-Indo-GPTQMerak-7B-v3-Mini-Orca-Indo-GPTQFirst make sure you have AutoGPTQ installed:
GITHUB_ACTIONS=true pip install auto-gptq
pip install sentencepiece
Then try the following example code:
from transformers import AutoTokenizer, pipeline, logging
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
model_name_or_path = "asyafiqe/Merak-7B-v3-Mini-Orca-Indo-GPTQ"
model_basename = "Merak-7B-v3-Mini-Orca-Indo-GPTQ"
use_triton = False
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
model_basename=model_basename,
use_safetensors=True,
trust_remote_code=True,
device="cuda:0",
use_triton=use_triton,
quantize_config=None)
prompt = "Buat rencana untuk menghemat listrik di rumah"
system_message = "Anda adalah asisten AI. Anda akan diberi tugas. Anda harus menghasilkan jawaban yang rinci dan panjang.\n"
prompt_template=f'''SYSTEM: {system_message}
USER: {prompt}
ASSISTANT: '''
print("\n\n*** Generate:")
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
print(tokenizer.decode(output[0]))
# Inference can also be done using transformers' pipeline
# Prevent printing spurious transformers error when using pipeline with AutoGPTQ
logging.set_verbosity(logging.CRITICAL)
print("*** Pipeline:")
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_new_tokens=512,
temperature=0.7,
top_p=0.95,
repetition_penalty=1.15
)
print(pipe(prompt_template)[0]['generated_text'])
The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLaMa (only CUDA has been tested), and Occ4m's GPTQ-for-LLaMa fork.
ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
TheBloke for the Readme template.