Update README.md
Browse files11 unmodified lines1213141516171819209 unmodified lines30313233343511 unmodified lines> Notes: Keep `lm_head` in high precision; calibrate on long, domain-relevant sequences.Check the original model card for information about this model.# Running the model with VLLM in Docker```shdocker run --rm -ti --gpus all \-v $(pwd)/Step-Audio-R1:/Step-Audio-R1 \9 unmodified lines--interleave-mm-strings \--trust-remote-code```This was tested on an RTX Pro 6000 Blackwell cloud instance.If there are other models you're interested in seeing quantized to NVFP4 for use on the DGX Spark, or other modern Blackwell (or newer) cards let me know. I'm trying to make more NVFP4 models available to allow more people to try them out.11 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970719 unmodified lines8182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811911 unmodified lines> Notes: Keep `lm_head` in high precision; calibrate on long, domain-relevant sequences.📘 About This ModelThis is a quantized NVFP4 (W4A4) version of Step-Audio-R1, an open-weights Qwen2-Audio–based multimodal model for audio understanding and reasoning.The original BF16 model requires ~67 GB VRAM.Step-Audio-R1 combines:A high-capacity audio encoderA projection layer that maps audio features into the transformerA Qwen2 language backbone for reasoning and text generationThe model is designed for:Speech transcription and interpretationEmotional / tonal analysisSpeaker characteristicsMusic and sound-scene understandingHigh-quality step-by-step reasoning about audio inputsIt does not generate audio; it produces text based on audio input.📦 What This Quantized Version EnablesThis NVFP4 quantized version reduces memory requirements significantly:Size: ~22 GB (down from ~67 GB)Runs comfortably on a single RTX 5090Fully compatible with vLLM (including streaming text output)Preserves most reasoning performance from the BF16 releaseBecause of this, anyone with a high-end consumer GPU can experiment with advanced audio reasoning locally.🖥 Supported Audio BehaviorThe model supports:✔ Streaming text output through vLLM✔ Reading uploaded audio files (WAV/MP3/etc) via ffmpeg✘ It does not synthesize audio✘ It does not require pre-burned waveforms — any user-provided audio file worksCheck the original model card for information about this model for more info.# Running the model with VLLM in DockerIt requires a specific vllm container released by the model authors.```shdocker run --rm -ti --gpus all \-v $(pwd)/Step-Audio-R1:/Step-Audio-R1 \9 unmodified lines--interleave-mm-strings \--trust-remote-code```This example script should allow an audio wave full to be streamed to the model and get a response based on the prompt.```pyimport requestsimport base64with open("audio.wav", "rb") as f:audio_b64 = base64.b64encode(f.read()).decode()payload = {"model": "Step-Audio-R1","stream": True,"messages": [{"role": "user","content": [{"type": "input_audio", "audio_data": audio_b64, "mime_type": "audio/wav"},{"type": "text", "text": "Transcribe this and describe the speaker."}]}]}with requests.post("http://localhost:9999/v1/chat/completions",json=payload,stream=True,) as r:for line in r.iter_lines():if line:print(line.decode())```This was tested on an RTX Pro 6000 Blackwell cloud instance.If there are other models you're interested in seeing quantized to NVFP4 for use on the DGX Spark, or other modern Blackwell (or newer) cards let me know. I'm trying to make more NVFP4 models available to allow more people to try them out.
README.md+85-1