Downloads · 30 days
204
24% of all-time downloads
Velkamez/tamazight-sp-bpe
tamazight-sp-bpe is a text generation model from Velkamez. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a custom Transformer-based language model trained from scratch on Tamazight (Berber) text with a SentencePiece BPE tokenizer.
Downloads · 30 days
204
24% of all-time downloads
All-time downloads
849
Public
Parameters
98.3M
787 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors393 MB · 100%
From the Hugging Face model README
This is a custom Transformer-based language model trained from scratch on Tamazight (Berber) text with a SentencePiece BPE tokenizer.
<s>, </s>, <unk>, <pad>import sentencepiece as spm
import torch
# Load tokenizer
sp = spm.SentencePieceProcessor(model_file='tokenizer.model')
# Load model
model = torch.load('pytorch_model.bin', map_location='cpu')
Tokenizing Text
Copied # Encode
text = "Asalam"
pieces = sp.encode_as_pieces(text)
ids = sp.encode_as_ids(text)
# Decode
decoded = sp.decode_ids(ids) Files
pytorch_model.bin: Model weights
config.json: Model configuration
tokenizer.model: SentencePiece BPE tokenizer
tokenizer_config.json: Tokenizer configuration
special_tokens_map.json: Special tokens mapping
Languages
Supports Tamazight text in multiple scripts:
Tifinagh: Traditional Amazigh script
Latin: Latin transliteration
Arabic: Arabic script representation
Created on: 2026-02-07