DataSnake commited on
Commit
22ec27a
·
verified ·
1 Parent(s): 793f8c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -2
README.md CHANGED
@@ -19,9 +19,35 @@ tags:
19
  Quantized weights of the [Muse-12B](https://huggingface.co/LatitudeGames/Muse-12B) model for use with nVidia Blackwell GPUs, in a hybrid format using NVFP4 with [Four Over Six](https://arxiv.org/abs/2512.02010) adaptive block scaling for the MLP layers and `FP8_DYNAMIC` for the self-attention layers. More information about the hybrid format [here](https://huggingface.co/DataSnake/Mistral-Nemo-Instruct-2407-NVFP4-FP8), but the short version is that FP8 attention has minimal impact on speed and VRAM usage while making a marked difference in output quality, especially at longer context lengths.
20
 
21
  ## Inference
22
- Tested on a RTX 5060 Ti 16GB with [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine) and [vLLM](https://github.com/vllm-project/vllm). It requires compressed-tensors 0.14.0 or later, so you'll have to update the version in your venv if you use Aphrodite Engine or an older version of vLLM. On my system, Aphrodite Engine was able to run the checkpoint with a 32k context window with the `--single-user-mode` flag, while vLLM didn't have quite enough VRAM to do the same. It works fine at shorter context lengths or with the KV cache quantized, however.
 
 
 
 
 
23
 
24
- Recommended generation settings (a mix of what it says on the Muse-12B model card and the [AI Dungeon Model Guide](https://help.aidungeon.com/ai-models-and-their-differences)):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  - Temperature: 1.0
26
  - Top K: 250
27
  - Top P: 1
 
19
  Quantized weights of the [Muse-12B](https://huggingface.co/LatitudeGames/Muse-12B) model for use with nVidia Blackwell GPUs, in a hybrid format using NVFP4 with [Four Over Six](https://arxiv.org/abs/2512.02010) adaptive block scaling for the MLP layers and `FP8_DYNAMIC` for the self-attention layers. More information about the hybrid format [here](https://huggingface.co/DataSnake/Mistral-Nemo-Instruct-2407-NVFP4-FP8), but the short version is that FP8 attention has minimal impact on speed and VRAM usage while making a marked difference in output quality, especially at longer context lengths.
20
 
21
  ## Inference
22
+ Tested on a RTX 5060 Ti 16GB with [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine) and [vLLM](https://github.com/vllm-project/vllm). It requires compressed-tensors 0.14.0 or later, so you'll have to update the version in your venv if you use Aphrodite Engine 0.10.0 or an older version of vLLM. On my system, Aphrodite Engine 0.10.0 was able to run the checkpoint with a 32k context window with the `--single-user-mode` flag, while vLLM 0.20.0 and Aphrodite Engine 0.20.0, which don't have that flag, were able to do the same with `--max-num-seqs 1 --cudagraph-capture-sizes 2` flags, though with the caveat that each crashed with OOM errors the first time they ran the model but ran fine from the second time onwards.
23
+ <details>
24
+ <summary>Details about the 0.20.0 memory issue</summary>
25
+
26
+ From what I can determine, compiling the CUDA graph for the model uses enough VRAM that there's not enough left to allocate the full KV cache. In both cases, the first run mentions saving something to a cache and the second doesn't. And in both cases, the first run reports that has 4.16 GiB of VRAM available for the KV cache before crashing due to lack of memory and the second run has 5.2 and doesn't crash. For reference, a 32768-token KV cache for this model will use precisely 5.00 GiB.
27
+ </details>
28
 
29
+ <details>
30
+ <summary>Extra steps when using Aphrodite Engine 0.10.0</summary>
31
+
32
+ For the purposes of these instructions, I'm assuming you have Aphrodite Engine 0.10.0 installed in a Python 3.12 uv venv, as per the official [instructions](https://aphrodite.pygmalion.chat/installation/installation/).
33
+
34
+ First, update compressed-tensors to a more recent version:
35
+ ```
36
+ uv pip install "compressed-tensors>=0.14.0"
37
+ ```
38
+
39
+ Next, open `<venv directory>/lib/python3.12/site-packages/aphrodite/platforms/interface.py` in your text editor of choice and comment out or delete lines 487-491. To make sure you're in the right place, the lines should initially look like this:
40
+ ```
41
+ logger.warning(
42
+ "Current platform %s does not have '%s' attribute.",
43
+ self.device_type,
44
+ key,
45
+ )
46
+ ```
47
+ </details>
48
+
49
+ ### Recommended Generation Settings
50
+ This is a mix of what it says on the Muse-12B model card and the [AI Dungeon Model Guide](https://help.aidungeon.com/ai-models-and-their-differences):
51
  - Temperature: 1.0
52
  - Top K: 250
53
  - Top P: 1