Downloads · 30 days
0
antalvdb/olifant-edufineweb-chatbot
olifant-edufineweb-chatbot is a text generation model from antalvdb. Use it when you need the model to write or continue text. The card lists the license as gpl-3.0.
OLIFANT (Memory-Based Language Model) is a CPU-based, fully explainable language model that replaces neural networks with memory-based learning. Every prediction can be traced back to specific training examples, provi…
Downloads · 30 days
0
Access
Public
Updated Jan 9, 2026
Repo size
11.9 GB
Likes
0
Public
Click a slice to open those files.
.ibase11.9 GB · 100%
From the Hugging Face model README
OLIFANT (Memory-Based Language Model) is a CPU-based, fully explainable language model that replaces neural networks with memory-based learning. Every prediction can be traced back to specific training examples, providing complete transparency.
This model is trained on EduFineweb (high-quality educational web text) combined with chatbot instruction data, enabling conversational text generation with full explainability. Three model sizes are available. All models are based on the TiMBL memory-based engine, and use IGTree as classifier; IGTree is TiMBL's fast decision-tree approximation of k-nearest neighbor classification. All three models make use of the GPT-2 tokenizer.
| Feature | Value |
|---|---|
| Context Window | 4 tokens |
| Training Data | EduFineweb shard 1, first 50M tokens + Chatbot/Instruct Data (~21M tokens) |
| Model Size (file) | ~1.4 GB |
| Feature | Value |
|---|---|
| Context Window | 4 tokens |
| Training Data | EduFineweb shard 1, 100M tokens + Chatbot/Instruct Data (~21M tokens) |
| Model Size (file) | ~2.4 GB |
| Feature | Value |
|---|---|
| Context Window | 16 tokens |
| Training Data | EduFineweb shards 1-3, 300M tokens + Chatbot/Instruct Data (~21M tokens) |
| Model Size (file) | ~8.1 GB |
Try the interactive demo: antalvdb/olifant-generate
from transformers import GPT2Tokenizer
import timbl
# Load tokenizer
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
# Load OLIFANT model
classifier = timbl.TimblClassifier(
"olifant",
"-a1 +D +vdb+di" # IB1 algorithm with distance weighting
)
classifier.load("edufineweb_train_1-3_chatbot_tok.l16r0.igtree.ibase")
# Prepare context (16 tokens, underscore-padded)
prompt = "The capital of France is"
tokens = tokenizer.tokenize(prompt)
context = ["_"] * (16 - len(tokens)) + tokens[-16:]
# Predict next token
result = classifier.classify(context)
predicted_token = result[0]
print(f"Predicted: {tokenizer.convert_tokens_to_string([predicted_token])}")
Training Data
Performance
| Metric | Value |
|---|---|
| Inference Speed | 10-50 tokens/sec (CPU) |
| RAM Required | ~8-10 GB |
| Accuracy | Approaching GPT-2 level |
| Best Use | Short-form completions (20-50 tokens) |
Limitations
Environmental Impact
OLIFANT achieves 1,000x lower carbon footprint compared to GPU-based neural language models:
Citation
@article{vandenbosch2025olifant,
title={Memory-based Language Models: An Efficient, Explainable, and Eco-friendly Approach to Large Language Modeling},
author={Van den Bosch, Antal and Risco Pat{\'o}n, Alejandro and Buijse, Thom and Berck, Peter and Van Gompel, Maarten},
journal={arXiv preprint arXiv:2510.22317},
year={2025}
}
Links
License
GPL-3.0
This model card covers: