Downloads · 30 days
8
16% of all-time downloads
alphaedge-ai/granite-4.0-1b-ces-32768
granite-4.0-1b-ces-32768 is a text generation model from alphaedge-ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a 8.48% smaller version of ibm-granite/granite-4.0-1b optimized for Czech language via vocabulary size reduction using the trimming method. This trimmed model should perform similarly to the original mod…
Downloads · 30 days
8
16% of all-time downloads
All-time downloads
51
Public
Parameters
1.5B
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3 GB · 100%
From the Hugging Face model README
This model is a 8.48% smaller version of ibm-granite/granite-4.0-1b optimized for Czech language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 32,768 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.
| Metric | Original | Trimmed | Reduction |
|---|---|---|---|
| Vocabulary size | 100,352 tokens | 32,768 tokens | 67.35% |
| Model size | 1,631,750,144 params | 1,493,338,112 params | 8.48% |

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"
model_path = "alphaedge-ai/granite-4.0-1b-ces-32768"
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])
@misc{granite2025,
author = {IBM Research},
title = {Granite 4.0 Language Models},
year = {2025},
howpublished = {https://github.com/ibm-granite/granite-4.0-language-models},
}
@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},
}