Text Generation
Transformers
Safetensors
Arabic
English
k2_horizon
nvfp4
nvfp4a16
4-bit precision
compressed-tensors
llm-compressor
gptq
quantized
vllm
arabic
jais-3
custom_code
conversational
8-bit precision
Instructions to use PureTensorAI/Jais-3-0.9B-NVFP4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PureTensorAI/Jais-3-0.9B-NVFP4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PureTensorAI/Jais-3-0.9B-NVFP4A16", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("PureTensorAI/Jais-3-0.9B-NVFP4A16", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PureTensorAI/Jais-3-0.9B-NVFP4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PureTensorAI/Jais-3-0.9B-NVFP4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PureTensorAI/Jais-3-0.9B-NVFP4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PureTensorAI/Jais-3-0.9B-NVFP4A16
- SGLang
How to use PureTensorAI/Jais-3-0.9B-NVFP4A16 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "PureTensorAI/Jais-3-0.9B-NVFP4A16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PureTensorAI/Jais-3-0.9B-NVFP4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "PureTensorAI/Jais-3-0.9B-NVFP4A16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PureTensorAI/Jais-3-0.9B-NVFP4A16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PureTensorAI/Jais-3-0.9B-NVFP4A16 with Docker Model Runner:
docker model run hf.co/PureTensorAI/Jais-3-0.9B-NVFP4A16
Card: note independent discovery and credit earlier work on capping first-token Hessian rows
Browse files
README.md
CHANGED
|
@@ -104,6 +104,16 @@ GPTQModifier.calibrate_module = calibrate_module
|
|
| 104 |
|
| 105 |
On the larger models of this family (3.7B, 7B) and on an unrelated 2B model the same cap made no reliable difference, so we treat it as a fix for this failure, not as a general improvement.
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
## Usage
|
| 108 |
|
| 109 |
vLLM:
|
|
|
|
| 104 |
|
| 105 |
On the larger models of this family (3.7B, 7B) and on an unrelated 2B model the same cap made no reliable difference, so we treat it as a fix for this failure, not as a general improvement.
|
| 106 |
|
| 107 |
+
### Related work
|
| 108 |
+
|
| 109 |
+
We discovered this independently on 20 November 2026, while diagnosing the failure described above, and only then searched for earlier work. We were not first:
|
| 110 |
+
|
| 111 |
+
- The GPTQModel project reported the same diagnosis on 16 November 2026: on another model, the start-of-text row made up 99.0 to 99.97% of one down-projection layer's Hessian norm and GPTQ did worse than round-to-nearest ([issue 4393](https://github.com/ModelCloud/GPTQModel/issues/4393)). The next day it merged a cap on calibration row norms at 4 times the median ([pull request 4909](https://github.com/ModelCloud/GPTQModel/pull/4909)), the same idea and the same constant as the cap used here.
|
| 112 |
+
- The MiniCPM4 paper ([arXiv 2506.07900](https://arxiv.org/abs/2506.07900), section 4.1.2, June 2025) describes initial tokens distorting the GPTQ Hessian of down-projection layers and leaves the first four positions out of it.
|
| 113 |
+
- The large first-token activations themselves are described in [Massive Activations in Large Language Models](https://arxiv.org/abs/2402.17762) (2024).
|
| 114 |
+
|
| 115 |
+
What this card adds is a measured case: the failure on prompts without the start-of-text token, and benchmark results for the cap on this model.
|
| 116 |
+
|
| 117 |
## Usage
|
| 118 |
|
| 119 |
vLLM:
|