Downloads · 30 days
17
2% of all-time downloads
jjjssjs/HyperCLOVAX-SEED-Think-32B-4bit
HyperCLOVAX-SEED-Think-32B-4bit is a machine learning model from jjjssjs. 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
17
2% of all-time downloads
All-time downloads
761
Public
Parameters
33.3B
19.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors19.1 GB · 100%
How the weights are stored.
U833B · 96%
From the Hugging Face model README
Thanks to naver-hyperclovax
This is a 4-bit quantized version of naver-hyperclovax/HyperCLOVAX-SEED-Think-32B using bitsandbytes NF4 quantization with double quantization for optimal memory efficiency.
HyperCLOVA X SEED 32B Think is an advanced vision-language thinking model that extends the SEED Think 14B line.
Quantization Method: bitsandbytes NF4 (NormalFloat 4-bit) Compute dtype: bfloat16 Storage dtype: uint8 Double Quantization: Enabled
pip install torch transformers bitsandbytes accelerate
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "jjjssjs/HyperCLOVAX-SEED-Think-32B-4bit"
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(
model_id,
trust_remote_code=True,
fix_mistral_reges=True
)
# Load quantized model (quantization config is in config.json)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
)
# Generate
inputs = tokenizer("양자역학이 뭐야?", return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=100,
do_sample=True,
temperature=0.7,
top_p=0.9,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
prompt = "Explain quantum computing in simple terms."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=200,
temperature=0.7,
top_p=0.9,
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from PIL import Image
# Load image
image = Image.open("example.jpg")
# Prepare inputs
text = "Describe this image in detail."
inputs = tokenizer(text, return_tensors="pt").to(model.device)
# Generate response
outputs = model.generate(
**inputs,
max_new_tokens=150,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
conversation = [
{"role": "user", "content": "What is machine learning?"},
{"role": "assistant", "content": "Machine learning is..."},
{"role": "user", "content": "Can you give me an example?"}
]
# Process conversation
inputs = tokenizer.apply_chat_template(
conversation,
return_tensors="pt"
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Features:
<think>...</think> outputfix_mistral_regex=True)Note: Quantized model benchmarks pending. Performance may differ slightly from the original model. For original model benchmarks, see: HyperCLOVAX-SEED-Think-32B
This model is licensed under the HyperCLOVA X SEED 32B Think Model License Agreement.