Firworks/GLM-4.6V-Flash-nvfp4

🤗 Hugging Face 来源mit6.3B 参数7.6 GBsafetensors✓ 2 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo Firworks/GLM-4.6V-Flash-nvfp4 ./model-folder
需要做种者 →

GLM-4.6V-Flash-nvfp4

Format: NVFP4 — weights & activations quantized to FP4 with dual scaling.
Base model: zai-org/GLM-4.6V-Flash
How it was made: One-shot calibration with LLM Compressor (NVFP4 recipe), long-seq calibration (256 samples at 4096 max length) with Rombo-Org/Optimized_Reasoning.

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

The current latest and nightly builds of the VLLM docker image are picking up a version of transformers too old to run GLM-4.6V Flash. To remedy this a lightweight docker container can be built locally that will allow it to run:

Create a file named Dockerfile containing:

FROM vllm/vllm-openai:nightly
RUN pip install -U --pre "transformers>=5.0.0rc0"

Build the new container locally:

sudo docker build -t vllm-glm46v-t5 .

Once the container is built locally, the model can be run as follows:

sudo docker run --runtime nvidia --gpus all --ipc=host -p 8000:8000 --rm vllm-glm46v-t5 Firworks/GLM-4.6V-Flash-nvfp4 --dtype auto --max-model-len 32768

Incidentally, these instructions should also work to run the official unquantized vrsion of GLM-4.6V-Flash. Just swap out the model name in the final docker run command.

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.