Litespark Nemotron 3.5 Super VL
A CUDA kernel generation model based on NVIDIA Nemotron 3.5 Super. Given a PyTorch nn.Module, it writes a hardware-agnostic CUDA kernel implementation of it.
Model details
| Base model | NVIDIA Nemotron 3.5 Super (BF16, MTP) |
| Architecture | Hybrid Mamba-2 + attention + latent MoE |
| Task | PyTorch module → CUDA kernel |
| Precision | BF16 |
| Size | ~232 GB (safetensors) |
How to use
Requires transformers 5.x and about 240 GB of GPU memory (for example 2× H200 or 1× B300).
import torch
import transformers
repo = "mindbeam-ai/litespark-nemotron-3.5-super-vl"
tokenizer = transformers.AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = transformers.AutoModelForCausalLM.from_pretrained(
repo,
trust_remote_code=True,
dtype=torch.bfloat16,
device_map="balanced",
)
lm = model.language_model # text-only use
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": USER_PROMPT}, # the PyTorch module to convert
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
enable_thinking=False, # required, see below
return_tensors="pt",
).to(lm.device)
out = lm.generate(inputs, max_new_tokens=4096, do_sample=False)
print(tokenizer.decode(out[0, inputs.shape[1]:], skip_special_tokens=True))
Prompt format
- Always pass
enable_thinking=Falsetoapply_chat_template. Without it, the model writes prose reasoning instead of code. - Use the Litespark v2 system prompt and user template (hash
e10c96d8) for best results. - Use greedy decoding (
do_sample=False) for consistent output.
Limitations
- Use for text only for now. With
transformers5.x, the vision projector weights are stored under a different name than the loader expects, so image inputs are not supported yet. Do not re-save the model from a loaded copy. - On multi-GPU setups, the fast Mamba kernels (
causal-conv1d,mamba-ssm) can hang. If that happens, uninstall them to fall back to the PyTorch implementation. - Generated kernels must be compiled and tested for correctness and speed before use.
License
Derived from an NVIDIA Nemotron model and subject to the base model's license terms.