Downloads · 30 days
9
22% of all-time downloads
avinashhm/Qwen3-8B-4bit-SINQ
Qwen3-8B-4bit-SINQ is a machine learning model from avinashhm. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a 4-bit quantized version of the Qwen/Qwen3-8B model using SINQ (Sinkhorn-Normalized Quantization).
Downloads · 30 days
9
22% of all-time downloads
All-time downloads
41
Public
Repo size
11.2 GB
Likes
2
Public
Click a slice to open those files.
.pt6.2 GB · 71%
From the Hugging Face model README
This is a 4-bit quantized version of the Qwen/Qwen3-8B model using SINQ (Sinkhorn-Normalized Quantization).
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"avinashhm/Qwen3-8B-4bit-SINQ",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"avinashhm/Qwen3-8B-4bit-SINQ",
trust_remote_code=True
)
prompt = "Describe the future of artificial intelligence."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda:0")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
transformers is up-to-date: pip install git+https://github.com/huggingface/transformers.git