Get Started with Qwen3.8-2.4T-A95B
Qwen3.8-2.4T-A95B (also known as Qwen3.8-Max) features 2.4 trillion total parameters with 95 billion active parameters per token using a sparse Mixture-of-Experts (MoE) design, a 1-million-token context window, and open-weight availability.
This procedure uses the SGLang Model-Free NIM to download the model from a remote source. For more information, refer to Model-Free NIM.
Known Issues
This release includes the following known issues and limitations.
- Image and video input are not supported.
- Only GB300-NVL72 GPUs are supported.
- Deployment requires a minimum of four nodes.
- Deployment using the Kubernetes
serviceAccountNameis not supported. - Kubernetes is the only supported deployment method.
Prerequisites
Before deploying a NIM LLM container, ensure your environment meets the following requirements:
Hardware Requirements
The following are the minimum required specifications for supported hardware components:
Software Requirements
Minimum required versions for supported software components.
Operating System
While other Linux distributions can be compatible with NIM, they have not been officially validated.
We recommend using Ubuntu 22.04 LTS or later for the best experience.
CUDA SDK
Install CUDA SDK by following the CUDA installation guide for Linux.
GPU Drivers
Install the NVIDIA GPU drivers by following the NVIDIA Driver Installation Guide.
Docker
Docker is required to run the containerized NIM services.
-
Install Docker Engine for your Linux distribution by following the Docker Engine installation guide.
-
Verify that the Docker daemon is running and that your user can execute
dockercommands withoutsudo. Add your user to thedockergroup if needed: -
Log out and back in for the group change to take effect.
Container Toolkit
The NVIDIA Container Toolkit enables Docker containers to access the host GPU.
-
Install the toolkit by following the NVIDIA Container Toolkit installation guide.
-
Configure Docker to use the NVIDIA runtime by following the Docker configuration steps.
-
Restart the Docker daemon after configuration:
NIM Container Access
To download and deploy NIM containers, you need one of the following:
- A free NVIDIA Developer Program membership.
- An NVIDIA AI Enterprise license. To request a free 90-day evaluation license, refer to Ways to Get Started With NVIDIA AI Enterprise and Activate Your NVIDIA AI Enterprise License.
Generate Access Credentials
To create an NGC Personal API key, do the following:
-
Generate the Personal API Key on the Setup API Keys page.
-
When creating the Personal API key, select at least NGC Catalog from the Services Included list. You can also include additional services if you want to use the same key for other purposes.
Legacy API keys are not supported by NIM. Always use a Personal API Key.
Verify NVIDIA Runtime Access
To ensure that your setup is correct, run the following command:
This command should produce output similar to one of the following, where you can confirm CUDA driver version, and available GPUs.
Configuration
Use environment variables to control authentication and model caching.
Export NGC API Key
-
Export the variable in your shell (temporary), replacing
<VALUE>with your actual API key: -
Persist the variable (optional):
If using bash:
If using zsh:
-
Verify the variable is set:
Create and Export a Token for the Remote Repository
-
Create a Hugging Face access token with read permissions (or higher, only if your org or private repos require it).
-
Export the token in your shell (temporary), replacing
<token-value>with your actual token: -
Persist the variable (optional):
If using bash:
If using zsh:
-
Verify the variable is set:
If you want to serve a pre-downloaded local model or a private cloud model instead of downloading one from Hugging Face, you do not need a Hugging Face access token. Refer to Model Downloads for your workflow.
For enhanced security, consider storing your token in a file and retrieving it
as needed with cat. Alternatively, consider using a
password manager.
Run NIM
This NIM needs to host a model with 2.4T parameters, so it can not be deployed directly on a single node. Deploy it using a service in a Kubernetes cluster and configure Ingress to provide external access.
Your Kubernetes cluster nodes need to unmask imex.service. SRE should complete
this step before deployment.
-
Install LeaderWorkerSet (LWS) in Kubernetes.
-
(Optional) Create a new namespace in Kubernetes. (Remove the
-nparameter and value from following commands if you choose to not create a namespace.) -
Create a Kubernetes secret for the token.
-
Authenticate the download of the SGLang Model-Free NIM from NGC.
-
Create a
values.yamlfile for your multi-node deployment. Make sure to update<your-rwx-storage-class>to configure a persistent model cache for production deployments. -
Fetch the Helm chart package.
-
Install the Helm chart.
-
Find your deployment pods.
Interact with the API
Because this NIM is deployed in Kubernetes, the usual approach is to expose
access interfaces to developers outside the cluster by creating a Service and an
Ingress. You can configure this on your own. This guide uses kubectl exec to
run commands and perform tests directly inside the NIM container.
There are three main inference endpoints:
- Chat Completions:
/v1/chat/completions - Text Completions:
/v1/completions - Responses:
/v1/responses
All three endpoints support streaming.
Find the Model Name
Replace the "model" value in the examples below with the model name served by
your NIM container. To find it, query the models endpoint:
The id field in the response is the model name to use in your requests. For
model-free NIMs, the name is set by the NIM_SERVED_MODEL_NAME environment variable
as shown in the preceding values.yaml file. If NIM_SERVED_MODEL_NAME is not
set, the name is derived from the reference to the model (for example, Qwen/Qwen3.8-2.4T-A95B-FP8).
Send a Chat Completion Request
Once the server is running, you can send a request to the chat completion endpoint:
The expected response:
Verify Health Endpoints
You can verify that the NIM container is running and ready to accept requests by checking its health endpoints. By default, these endpoints are served on port 8000. If you set NIM_HEALTH_PORT, use that port instead.
Live Endpoint
Perform a liveness check to see if the server is running:
Example response:
Ready Endpoint
Perform a readiness check to see if the model is fully loaded and ready for inference:
Example response:
Streaming
To receive responses incrementally as they are generated, you can enable streaming by adding "stream": true to your request payload. This is supported across the /v1/chat/completions, /v1/completions, and /v1/responses endpoints.
When streaming is enabled, the API returns a sequence of Server-Sent Events (SSE).
The response will be streamed back in chunks, with each chunk containing a data JSON object. The stream terminates with a data: [DONE] message:
Enable Thinking
Qwen3.8-2.4T-A95B supports both thinking (default) and non-thinking modes.
The thinking mode offers three reasoning_effort levels. The specific settings
are as follows:
preserve_thinking is enabled by default for all workloads for
the best starting experience.