How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "alphaedge-ai/granite-4.0-350m-ces-16384"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "alphaedge-ai/granite-4.0-350m-ces-16384",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/alphaedge-ai/granite-4.0-350m-ces-16384
Quick Links

granite-4.0-350m-ces-16384

This model is a 24.40% smaller version of ibm-granite/granite-4.0-350m optimized for Czech language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.

Model Statistics

Metric Original Trimmed Reduction
Vocabulary size 100,352 tokens 16,384 tokens 83.67%
Model size 352,379,904 params 266,396,672 params 24.40%

image

Mining Dataset Statistics

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"
model_path = "alphaedge-ai/granite-4.0-350m-ces-16384"

tokenizer = AutoTokenizer.from_pretrained(model_path)
# drop device_map if running on CPU
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
model.eval()

# change input text as desired
chat = [
    {"role": "user", "content": "Your prompt in Czech."},
]
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)

# tokenize the text
input_tokens = tokenizer(chat, return_tensors="pt").to(device)

# generate output tokens
output = model.generate(**input_tokens, max_new_tokens=100)

# decode output tokens into text
output = tokenizer.batch_decode(output)
print(output[0])

Citations

Granite 4.0

@misc{granite2025,
  author       = {IBM Research},
  title        = {Granite 4.0 Language Models},
  year         = {2025},
  howpublished = {https://github.com/ibm-granite/granite-4.0-language-models},
}

Trimming blog post

@misc{hf_blogpost_trimming,
      title={Introduction to Trimming}, 
      author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},
      year={2026},
      url={https://huggingface.co/blog/lbourdois/introduction-to-trimming}, 
}
Downloads last month
8
Safetensors
Model size
0.3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for alphaedge-ai/granite-4.0-350m-ces-16384

Quantized
(44)
this model

Dataset used to train alphaedge-ai/granite-4.0-350m-ces-16384

Collection including alphaedge-ai/granite-4.0-350m-ces-16384