Downloads · 30 days
19
53% of all-time downloads
hrnph/llama3.1-typhoon2-audio-8b-instruct-GPTQ-W4A16
llama3.1-typhoon2-audio-8b-instruct-GPTQ-W4A16 is a machine learning model from hrnph. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
4-bit (GPTQ, W4A16, group size 128, asymmetric, compressed-tensors format) quantization of typhoon-ai/llama3.1-typhoon2-audio-8b-instruct.
Downloads · 30 days
19
53% of all-time downloads
All-time downloads
36
Public
Parameters
9.7B
19.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors19.4 GB · 100%
How the weights are stored.
F169.7B · 100%
From the Hugging Face model README
4-bit (GPTQ, W4A16, group size 128, asymmetric, compressed-tensors format) quantization of typhoon-ai/llama3.1-typhoon2-audio-8b-instruct.
Only the 8B Llama 3.1 language backbone (llama_model.model.layers.*) is quantized.
The entire audio path is kept at full precision, so audio-in → text + audio-out
(speech-to-speech) works exactly like the base model:
speech_generator) and HiFi-GAN vocoder — fp32lm_head — fp16Same code and environment as the base model (transformers==4.45.2, fairseq==0.12.2,
flash-attn, trust_remote_code=True):
import torch, soundfile as sf
from transformers import AutoModel
model = AutoModel.from_pretrained(
"hrnph/llama3.1-typhoon2-audio-8b-instruct-GPTQ-W4A16",
torch_dtype=torch.float16,
trust_remote_code=True,
)
model.to("cuda")
conversation = [
{"role": "user", "content": [
{"type": "audio", "audio_url": "audio.wav"},
{"type": "text", "text": "โปรดถอดความข้อความในเสียงนี้"},
]}
]
out = model.generate(conversation=conversation)
print(out["text"])
sf.write("out.wav", out["audio"]["array"], out["audio"]["sampling_rate"])
oneshotGPTQModifier(targets=["llama_model.model.layers.0..31"], ignore=["lm_head"], scheme="W4A16", dampening_frac=0.01)HuggingFaceH4/ultrachat_200k, max sequence length 2048This is not a vLLM/SGLang/GGUF checkpoint. The base architecture
(Typhoon2Audio2AudioForConditionalGeneration, remote code with a fairseq vocoder and a
custom CTC generation loop) is not implemented in vLLM, SGLang or llama.cpp even at fp16 —
load it with transformers + trust_remote_code=True as shown above.
Quantized and uploaded automatically on Modal.