Downloads · 30 days
40
8% of all-time downloads
SkyAsl/LFM2.5-1.2B-TR-Base
LFM2.5-1.2B-TR-Base is a text generation model from SkyAsl. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This model is a Turkish language adaptation of LiquidAI/LFM-2.5-1.2B-Base developed via Continued Pre-training (CPT). It utilizes the Hybrid Liquid Foundation Model architecture, offering high reasoning capabilities w…
Downloads · 30 days
40
8% of all-time downloads
All-time downloads
478
Public
Parameters
1.2B
2.3 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors2.3 GB · 100%
From the Hugging Face model README
This model is a Turkish language adaptation of LiquidAI/LFM-2.5-1.2B-Base developed via Continued Pre-training (CPT). It utilizes the Hybrid Liquid Foundation Model architecture, offering high reasoning capabilities within the 1.2B parameter class.
The model was trained on a diverse and curated mix of Turkish data to ensure excellence in logic, formal knowledge, and contemporary language:
duxx/orca-math-word-problems-tr (100k samples) - Focused on reasoning and chain-of-thought in Turkish.musabg/wikipedia-tr (290k samples) - Extensive encyclopedic knowledge, filtered for long-form content (>500 chars).gorkemgoknar/tr_ted_talk_translated (180k samples) - Natural speech patterns and translated talk transcripts.turkish-nlp-suite/Havadis (300k samples) - Modern news language, filtered for high-quality long articles (>1000 chars).A Pre-packing technique was implemented during the training process, where all text was packed into fixed-length blocks of 4096 tokens to maximize GPU efficiency.
This is a Base Model. It has not been fine-tuned for instruction following or chat (SFT). While it has acquired strong Turkish language foundations, it acts as an "autocomplete" engine. To use it as an assistant, Instruction Tuning is highly recommended.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "SkyAsl/LFM-2.5-1.2B-TR-Base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
prompt = "Türkiye Cumhuriyeti'nin kurucusu Mustafa Kemal Atatürk,"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=50, temperature=0.3)
print(tokenizer.decode(output[0], skip_special_tokens=True))
This work is based on the LiquidAI/LFM2.5-1.2B-Base model. I thank the LiquidAI team for releasing the Hybrid Liquid Foundation Model architecture and enabling this research.
I also acknowledge the creators and maintainers of the datasets used during continued pre-training:
All datasets were used in accordance with their respective licenses and intended research or educational purposes.
This model is released under the same license terms as the base model
(LiquidAI/LFM2.5-1.2B-Base).
Please refer to the original model card for detailed license information.