Text Generation
Transformers
Safetensors
qwen3
conversational
text-generation-inference
8-bit precision
bitsandbytes
Instructions to use clejordan/MNLP_M3_quantized_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use clejordan/MNLP_M3_quantized_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="clejordan/MNLP_M3_quantized_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("clejordan/MNLP_M3_quantized_model") model = AutoModelForCausalLM.from_pretrained("clejordan/MNLP_M3_quantized_model") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use clejordan/MNLP_M3_quantized_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "clejordan/MNLP_M3_quantized_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "clejordan/MNLP_M3_quantized_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/clejordan/MNLP_M3_quantized_model
- SGLang
How to use clejordan/MNLP_M3_quantized_model 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 "clejordan/MNLP_M3_quantized_model" \ --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": "clejordan/MNLP_M3_quantized_model", "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 "clejordan/MNLP_M3_quantized_model" \ --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": "clejordan/MNLP_M3_quantized_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use clejordan/MNLP_M3_quantized_model with Docker Model Runner:
docker model run hf.co/clejordan/MNLP_M3_quantized_model
Upload Qwen3ForCausalLM
Browse files- config.json +13 -41
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -18,47 +18,19 @@
|
|
| 18 |
"num_hidden_layers": 28,
|
| 19 |
"num_key_value_heads": 8,
|
| 20 |
"quantization_config": {
|
| 21 |
-
"
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
},
|
| 35 |
-
"output_activations": null,
|
| 36 |
-
"targets": [
|
| 37 |
-
"Linear"
|
| 38 |
-
],
|
| 39 |
-
"weights": {
|
| 40 |
-
"actorder": null,
|
| 41 |
-
"block_structure": null,
|
| 42 |
-
"dynamic": false,
|
| 43 |
-
"group_size": null,
|
| 44 |
-
"num_bits": 8,
|
| 45 |
-
"observer": "minmax",
|
| 46 |
-
"observer_kwargs": {},
|
| 47 |
-
"strategy": "channel",
|
| 48 |
-
"symmetric": true,
|
| 49 |
-
"type": "int"
|
| 50 |
-
}
|
| 51 |
-
}
|
| 52 |
-
},
|
| 53 |
-
"format": "int-quantized",
|
| 54 |
-
"global_compression_ratio": null,
|
| 55 |
-
"ignore": [
|
| 56 |
-
"lm_head"
|
| 57 |
-
],
|
| 58 |
-
"kv_cache_scheme": null,
|
| 59 |
-
"quant_method": "compressed-tensors",
|
| 60 |
-
"quantization_status": "compressed",
|
| 61 |
-
"sparsity_config": {}
|
| 62 |
},
|
| 63 |
"rms_norm_eps": 1e-06,
|
| 64 |
"rope_scaling": null,
|
|
|
|
| 18 |
"num_hidden_layers": 28,
|
| 19 |
"num_key_value_heads": 8,
|
| 20 |
"quantization_config": {
|
| 21 |
+
"_load_in_4bit": false,
|
| 22 |
+
"_load_in_8bit": true,
|
| 23 |
+
"bnb_4bit_compute_dtype": "float32",
|
| 24 |
+
"bnb_4bit_quant_storage": "uint8",
|
| 25 |
+
"bnb_4bit_quant_type": "fp4",
|
| 26 |
+
"bnb_4bit_use_double_quant": false,
|
| 27 |
+
"llm_int8_enable_fp32_cpu_offload": true,
|
| 28 |
+
"llm_int8_has_fp16_weight": false,
|
| 29 |
+
"llm_int8_skip_modules": null,
|
| 30 |
+
"llm_int8_threshold": 6.0,
|
| 31 |
+
"load_in_4bit": false,
|
| 32 |
+
"load_in_8bit": true,
|
| 33 |
+
"quant_method": "bitsandbytes"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
},
|
| 35 |
"rms_norm_eps": 1e-06,
|
| 36 |
"rope_scaling": null,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5bcef2db084183a3646a9088fc365da380f36c4b117f69456e1542b41947ba1
|
| 3 |
+
size 753150052
|