Views
No views yet
1<s>[INST] SYSTEM MESSAGE
2USER MESSAGE[/INST] ASSISTANT MESSAGE</s>[INST] USER MESSAGE[/INST]| Item | Value |
|---|---|
| Source | anthracite-org/magnum-v4-12b |
| Architecture | Text-only Mistral Nemo 12B |
| Weight compression | INT4 asymmetric, group size 128 |
| Packed constants | 560 unsigned INT4 weight constants; four unsigned INT8 fallbacks |
| OpenVINO binary payload | approximately 6.53 GiB |
| Included IRs | model, tokenizer, and detokenizer |
1python -m pip install "openvino-genai==2026.2.1.0" "huggingface_hub>=1.0"
2hf download Wondernutts/magnum-v4-12b-int4-ov --local-dir ./magnum-v4-12b-int4-ov1import openvino_genai as ov_genai
2
3model_dir = "./magnum-v4-12b-int4-ov"
4pipe = ov_genai.LLMPipeline(
5 model_dir,
6 "GPU",
7 CACHE_DIR="./ov_cache",
8 DYNAMIC_QUANTIZATION_GROUP_SIZE=128,
9)
10
11config = ov_genai.GenerationConfig()
12config.max_new_tokens = 768
13config.do_sample = True
14config.temperature = 0.9
15config.top_p = 0.95
16config.repetition_penalty = 1.1
17
18pipe.start_chat("You are an observant fantasy character. Stay in character and write vivid prose.")
19print(pipe.generate(
20 "The campfire dies as footsteps circle beyond the trees.",
21 generation_config=config,
22))
23pipe.finish_chat()LLMPipeline; this is a text-only model. start_chat() applies the bundled tokenizer template and retains KV-cache state across turns. Change "GPU" to "CPU" for CPU inference.| DQGS | 512 PP tok/s | 2K PP tok/s | 6K PP tok/s | Decode tok/s |
|---|---|---|---|---|
| 0 | 5,095 | 4,481 | 3,897 | 72.05 |
| 128 | 5,894 | 6,268 | 5,134 | 72.37 |
DQGS=128 improved PP by 15.7% at 512, 39.9% at 2K, and 31.8% at
6K. The generated-token hashes matched DQGS=0 at every measured shape. A
separate 6,610-token coherence run produced the same 128-token SHA-256 under
both settings and passed all exact-detail and style checks.