Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

inference-optimization
/
Ministral-3-14B-Instruct-2512-NVFP4

Text Generation
Transformers
mistral3
image-text-to-text
neuralmagic
redhat
llmcompressor
quantized
FP4
conversational
compressed-tensors
Model card Files Files and versions
xet
Community

Instructions to use inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    pipe(text=messages)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4")
    model = AutoModelForImageTextToText.from_pretrained("inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4
  • SGLang

    How to use inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4 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 "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4" \
        --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": "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4",
    		"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 "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4" \
            --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": "inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4 with Docker Model Runner:

    docker model run hf.co/inference-optimization/Ministral-3-14B-Instruct-2512-NVFP4
Ministral-3-14B-Instruct-2512-NVFP4
13.5 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
ChibuUkachi's picture
ChibuUkachi
initial readme.md
20d28e8 verified 3 days ago
  • every_eval_ever
    every eval ever results 3 days ago
  • .gitattributes
    1.62 kB
    Upload folder using huggingface_hub 4 months ago
  • README.md
    6.43 kB
    initial readme.md 3 days ago
  • SYSTEM_PROMPT.txt
    2.41 kB
    Upload folder using huggingface_hub 4 months ago
  • chat_template.jinja
    7.75 kB
    Upload folder using huggingface_hub 4 months ago
  • config.json
    23.7 kB
    Upload folder using huggingface_hub 4 months ago
  • consolidated.safetensors
    13.4 GB
    xet
    Upload folder using huggingface_hub 4 months ago
  • convert_ministral_hf_to_mistral.py
    11.6 kB
    Upload folder using huggingface_hub 4 months ago
  • generation_config.json
    129 Bytes
    Upload folder using huggingface_hub 4 months ago
  • params.json
    23.1 kB
    Upload folder using huggingface_hub 4 months ago
  • recipe.yaml
    210 Bytes
    Upload folder using huggingface_hub 4 months ago
  • special_tokens_map.json
    147 kB
    Upload folder using huggingface_hub 4 months ago
  • tekken.json
    16.8 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • tokenizer.json
    17.1 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • tokenizer_config.json
    198 kB
    Upload folder using huggingface_hub 4 months ago