Downloads · 30 days
11
17% of all-time downloads
cloud19/sainemo-12b-fp4-blackwell
sainemo-12b-fp4-blackwell is a machine learning model from cloud19. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tensorrt-llm. The card lists the license as other.
This repository contains the FP4 (NVFP4) quantized version of Moraliane/SAINEMO-reMIX, specifically optimized for the NVIDIA Blackwell (B200/B100) architecture.
Downloads · 30 days
11
17% of all-time downloads
All-time downloads
66
Public
Parameters
12.2B
42.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors33.3 GB · 78%
From the Hugging Face model README
This repository contains the FP4 (NVFP4) quantized version of Moraliane/SAINEMO-reMIX, specifically optimized for the NVIDIA Blackwell (B200/B100) architecture.
transformers (v4.56+) and TensorRT-LLM.model.safetensors: Quantized weights in HF format (with _amax metadata).tokenizer_config.json: Patched for generic fast tokenizer support.engine/:
rank0.engine: Pre-compiled inference engine for NVIDIA Blackwell (CC 12.0).config.json: Engine configuration.Requirements: tensorrt-llm (v1.1.0+) installed on a Blackwell machine.
import tensorrt_llm
from tensorrt_llm.runtime import ModelRunner
from transformers import AutoTokenizer
import torch
# Path to the 'engine' folder from this repo
engine_dir = "./engine"
# Initialize runner
runner = ModelRunner.from_dir(engine_dir=engine_dir, rank=0)
# Load tokenizer from the root of this repo
tokenizer = AutoTokenizer.from_pretrained(".")
# Generate
input_ids = tokenizer.encode("Hello, who are you?", return_tensors="pt").int().cuda()
outputs = runner.generate(input_ids, max_new_tokens=50)
print(tokenizer.decode(outputs[0][0][len(input_ids[0]):], skip_special_tokens=True))
If you need to change build parameters (e.g., max batch size or sequence length):
# Convert to TRT-LLM checkpoint
python convert_checkpoint.py --model_dir . --output_dir ./trt_ckpt --dtype bfloat16
# Build engine for Blackwell
trtllm-build --checkpoint_dir ./trt_ckpt \
--output_dir ./engine \
--gemm_plugin nvfp4
Quantized using NVIDIA ModelOpt with mtq.NVFP4_DEFAULT_CFG.
cnn_dailymail.This model requires an NVIDIA GPU with Compute Capability 12.0 (Blackwell) for native FP4 execution. On older architectures, it will not run or will run significantly slower via emulation.