
Barbet 1B BaseBarbet 1B Base
一個讀過大量台灣文字的小型語言模型,是其他 OpenFormosa 模型的共同底座。A compact language model that has read a lot of Taiwan text. It is the shared base for the other OpenFormosa models.
把它想成一位記性很好的新同事。它讀過很多文字,很會「接著往下寫」,但還沒學過怎麼聊天。所以它不是聊天機器人,而是讓其他工具站上去的地基。Think of it as a new colleague with an excellent memory. It has read a lot and is good at continuing text, but it has not been taught to chat. It is not a chatbot. It is the foundation other tools stand on.
- 一次能讀 1,048,576 個 token 的長文。Token 是模型切分文字的單位。
- 大小約 11 億參數,學校、實驗室與團隊都有機會自己部署與調整。
- BlueMagpie-TTS 裡負責「理解文字」的部分,就是 Barbet。
- It can read 1,048,576 tokens of text at once. A token is the unit a model splits text into.
- With about 1.1 billion parameters, it is small enough for schools, labs, and teams to deploy and adapt.
- The part of BlueMagpie-TTS that understands text is Barbet.
Barbet 是基礎模型,不能直接對話。想感受它的成果,最快的方式是聽 BlueMagpie-TTS。Barbet is a base model and cannot chat. The quickest way to see what it enables is to listen to BlueMagpie-TTS.
- 約 1.119B 參數的 decoder-only causal LM。28 層,混合 global attention、8K sliding-window attention 與 Mamba 層,GQA(16 query heads、2 KV heads),詞嵌入與 LM head 共用權重,使用 PangolinTokenizer。
- Hugging Face 上的正式權重是
iter7008。它從 64K 逐步接續預先訓練到 exact 1M sequences,原生 context 1,048,576,rope_scaling為 null。這不是只靠 RoPE 外推。 - 長文評測:7 類遠距任務中有 6 類顯示,保留遠處的正確資料會提高正確答案的機率。多筆資料合併計算仍未通過。這是 base model 的機率評測,不代表生成作答的正確率。
- 6 月的 256K 版本在 TAIDE-14(140 筆,response_only)上為 0.7488 bits/byte。BPB 衡量文字建模,不衡量對話品質。
- Repo 另保留原始 256K 與 1M RoPE 外推的 legacy presets,供舊版研究重現。
- 限制:實際跑 1M 需要足夠 GPU 記憶體與 context parallelism。只有 CPU 時,Mamba 走 PyTorch 後備路徑。授權為 Apache 2.0。
- About 1.119B-parameter decoder-only causal LM. 28 layers mixing global attention, 8K sliding-window attention, and Mamba layers, GQA (16 query heads, 2 KV heads), tied embeddings, PangolinTokenizer vocabulary.
- The released Hugging Face weights are
iter7008, continued-pretrained from 64K up to exact 1M sequences. Native context is 1,048,576 andrope_scalingis null. This is not RoPE extrapolation alone. - Long-context evaluation: in 6 of 7 long-range task families, keeping the correct distant evidence raises the probability of the correct answer. Aggregating several records still fails. These are base-model likelihood tests, not generation accuracy.
- The June 256K release scored 0.7488 bits/byte on TAIDE-14 (140 samples, response_only). BPB measures text modeling, not chat quality.
- The repo keeps the original 256K and 1M RoPE-extrapolation legacy presets for reproducing earlier research.
- Limits: running 1M needs enough GPU memory and context parallelism. On CPU, Mamba falls back to a PyTorch path. Apache 2.0.
用 Transformers 載入Load with Transformers
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"OpenFormosa/barbet-1b-base", trust_remote_code=True)
如何參與How to help 可以回報載入或轉換問題、補充評測、改善文件。Report loading or conversion issues, add evaluations, or improve the docs. Issues →


