Downloads · 30 days
18
28% of all-time downloads
AlekseyCalvin/Lyrical_BLT1b_rus2eng
Lyrical_BLT1b_rus2eng is a machine learning model from AlekseyCalvin. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
18
28% of all-time downloads
All-time downloads
64
Public
Parameters
4.6B
9.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.3 GB · 100%
From the Hugging Face model README

BLT (Byte Latent Transformer) is a tokenizer-free transformer architecture that operates directly on raw byte sequences. Instead of processing text token by token, BLT dynamically groups bytes into entropy-based patches, enabling more efficient and scalable processing for byte-level tasks.
Key components:
BLT achieves competitive performance compared to traditional token-based transformers, supporting multilingual, noisy, or mixed-script input.
Paper: Byte Latent Transformer: Patches Scale Better Than Tokens (FAIR @ Meta)
Original FAIR checkpoint: https://huggingface.co/facebook/blt-1b
from transformers import BltForCausalLM, AutoTokenizer
model = BltForCausalLM.from_pretrained("itazap/blt-1b-hf", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("itazap/blt-1b-hf")
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=200, do_sample=False, use_cache=False)
output_text = tokenizer.decode(generated_ids[0], skip_special_tokens=True)