.. _models_llm_glm-4.6: ======================================== GLM-4.6 ======================================== - **Context Length:** 202752 - **Model Name:** GLM-4.6 - **Languages:** en, zh - **Abilities:** chat, reasoning, hybrid, tools - **Description:** GLM-4.6 significantly enhances context length (up to 200K tokens), code generation, reasoning with tool use, agent capabilities, and human-aligned writing compared to GLM-4.5. Specifications ^^^^^^^^^^^^^^ Model Spec 1 (pytorch, 355 Billion) ++++++++++++++++++++++++++++++++++++++++ - **Model Format:** pytorch - **Model Size (in billions):** 355 - **Quantizations:** none - **Engines**: vLLM, Transformers - **Model ID:** zai-org/GLM-4.6 - **Model Hubs**: `Hugging Face `__, `ModelScope `__ Execute the following command to launch the model, remember to replace ``${quantization}`` with your chosen quantization method from the options listed above:: xinference launch --model-engine ${engine} --model-name GLM-4.6 --size-in-billions 355 --model-format pytorch --quantization ${quantization} Model Spec 2 (fp8, 355 Billion) ++++++++++++++++++++++++++++++++++++++++ - **Model Format:** fp8 - **Model Size (in billions):** 355 - **Quantizations:** FP8 - **Engines**: vLLM - **Model ID:** zai-org/GLM-4.6-FP8 - **Model Hubs**: `Hugging Face `__, `ModelScope `__ Execute the following command to launch the model, remember to replace ``${quantization}`` with your chosen quantization method from the options listed above:: xinference launch --model-engine ${engine} --model-name GLM-4.6 --size-in-billions 355 --model-format fp8 --quantization ${quantization} Model Spec 3 (gptq, 355 Billion) ++++++++++++++++++++++++++++++++++++++++ - **Model Format:** gptq - **Model Size (in billions):** 355 - **Quantizations:** Int4-Int8Mix - **Engines**: vLLM, Transformers - **Model ID:** QuantTrio/GLM-4.6-GPTQ-Int4-Int8Mix - **Model Hubs**: `Hugging Face `__, `ModelScope `__ Execute the following command to launch the model, remember to replace ``${quantization}`` with your chosen quantization method from the options listed above:: xinference launch --model-engine ${engine} --model-name GLM-4.6 --size-in-billions 355 --model-format gptq --quantization ${quantization} Model Spec 4 (awq, 355 Billion) ++++++++++++++++++++++++++++++++++++++++ - **Model Format:** awq - **Model Size (in billions):** 355 - **Quantizations:** Int4 - **Engines**: vLLM, Transformers - **Model ID:** QuantTrio/GLM-4.6-AWQ - **Model Hubs**: `Hugging Face `__, `ModelScope `__ Execute the following command to launch the model, remember to replace ``${quantization}`` with your chosen quantization method from the options listed above:: xinference launch --model-engine ${engine} --model-name GLM-4.6 --size-in-billions 355 --model-format awq --quantization ${quantization} Model Spec 5 (mlx, 355 Billion) ++++++++++++++++++++++++++++++++++++++++ - **Model Format:** mlx - **Model Size (in billions):** 355 - **Quantizations:** 4bit, 5bit - **Engines**: MLX - **Model ID:** mlx-community/GLM-4.6-{quantization} - **Model Hubs**: `Hugging Face `__, `ModelScope `__ Execute the following command to launch the model, remember to replace ``${quantization}`` with your chosen quantization method from the options listed above:: xinference launch --model-engine ${engine} --model-name GLM-4.6 --size-in-billions 355 --model-format mlx --quantization ${quantization}