Downloads · 30 days
13
2% of all-time downloads
cmeraki/OpenHathi-7B-Hi-v0.1-Base-gptq
OpenHathi-7B-Hi-v0.1-Base-gptq is a text generation model from cmeraki. 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.
- Model creator: Sarvam AI - Original model: sarvamai/OpenHathi-7B-Hi-v0.1-Base
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
609
Public
Parameters
1.3B
4.2 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors4.2 GB · 100%
How the weights are stored.
I32817M · 65%
From the Hugging Face model README
This repo contains GPTQ model files for Sarvam's OpenHathi.
Files are made using AutoGPTQ with following config.
quantization_config : {"bits": 4,
"group_size": 128,
"damp_percent": 0.1,
"desc_act": true,
}
We use a custom dataset which has both Hindi and English wiki articles. We truncate to max_length=1024 and model may not perform well beyond that context size.
<!-- description end --> <!-- prompt-template start -->This is a base model not tuned for any instructions. Feel free to use any format. Alpaca/Vicuna works fine.
<!-- prompt-template end -->Standard oobagooba works with exllama2 / autogptq loader
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
from transformers import AutoTokenizer
model_dir = 'cmeraki/OpenHathi-7B-Hi-v0.1-Base-gptq'
model = AutoGPTQForCausalLM.from_quantized(model_dir, device="cuda:0")
tokenizer = AutoTokenizer.from_pretrained(model_dir, fast=True)
tokens = tokenizer("do aur do", return_tensors="pt").to(model.device)
print(tokenizer.decode(model.generate(**tokens, max_length=1024)[0]))
<!-- README_GPTQ.md-use-from-python end -->
<!-- README_GPTQ.md-compatibility start -->