Downloads · 30 days
8
10% of all-time downloads
FilledVaccum/Llama-3.1-Sherkala-8B-Chat-Quantized-8-Bits
Llama-3.1-Sherkala-8B-Chat-Quantized-8-Bits is a text generation model from FilledVaccum. Use it when you need the model to write or continue text. The card lists the license as llama3.1.
This is an 8-bit quantized version of inceptionai/Llama-3.1-Sherkala-8B-Chat, optimized for efficient inference with reduced memory requirements while maintaining performance quality.
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
78
Public
Parameters
8.3B
9.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.6 GB · 100%
How the weights are stored.
I87B · 84%
From the Hugging Face model README
This is an 8-bit quantized version of inceptionai/Llama-3.1-Sherkala-8B-Chat, optimized for efficient inference with reduced memory requirements while maintaining performance quality.
This model uses BitsAndBytes 8-bit quantization with the following configuration:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_name = "your-username/Llama-3.1-Sherkala-8B-Chat-Quantized-8-Bits"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Chat template
def format_chat(messages):
return tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
# Example conversation
messages = [
{"role": "user", "content": "Hello! Can you help me with a coding problem?"}
]
# Generate response
input_text = format_chat(messages)
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response)
| Precision | Memory Usage | Relative Size |
|---|---|---|
| FP16 (Original) | ~16 GB | 100% |
| 8-bit (This model) | ~8 GB | 50% |
This model inherits the training methodology from the base Llama-3.1-Sherkala-8B-Chat model. The quantization process preserves the original model's capabilities while optimizing for deployment efficiency.
The quantized model maintains performance characteristics similar to the base model across various benchmarks, with typical 8-bit quantization showing minimal quality loss (typically <2% degradation on most tasks).
If you use this model, please cite both the original Sherkala model and acknowledge the quantization:
@misc{sherkala-quantized-8bit,
title={Llama-3.1-Sherkala-8B-Chat-Quantized-8-Bits},
author={InceptionAI},
year={2024},
note={8-bit quantized version of Llama-3.1-Sherkala-8B-Chat}
}
This model is released under the same license as the base model. Please refer to the Llama 3.1 License for detailed terms and conditions.
For questions about this quantized version or technical support, please open an issue in the model repository or contact the development team.
This model card was generated on October 4, 2025. For the most up-to-date information, please refer to the original base model documentation.