Model reference · open weights

Tele-FLM

Available as managed deployment Embeddings CofeAI Embeddings 1 variants 17k dl/mo

Tele-FLM is an open-weight embedding model from CofeAI. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byCofeAI
TypeEmbedding models
TaskEmbeddings
Context4k tokens
Runs withtransformers
Released2024-04-26
Popularity17k downloads / month
LicenceOpen weights

About

What Tele-FLM is

Tele-FLM (aka FLM-2) is a 52B open-sourced multilingual large language model that features a stable, efficient pre-training paradigm and enhanced factual judgement capabilities. Built upon the decoder-only transformer architecture, it has been trained on approximately 2T tokens. Tele-FLM demonstrates superior performances at its scale, and sometimes surpass larger models. In addition to sharing the model weights, we provide the core designs, engineering practices, and training details, anticipating their benefits for both academic and industrial communities.

Read the full model card

Model Details

  • Developed by: BAAI & TeleAI
  • Language(s): English; Chinese; Other languages
  • License: Apache 2.0

Technical Report

Tele-FLM Technical Report

Bias, Risks, and Limitations

Although we've made extensive efforts to thoroughly clean and filter the training corpus for the model, due to the open nature of the dataset, the model may still have picked up on some unsafe examples. Consequently, the model may still generate unexpected content, including but not limited to discrimination, bias, or offensive language. We would like to strongly advise users not to spread any unsafe content generated by the model. The project developers cannot be held responsible for any repercussions stemming from the dissemination of harmful information.

Quick Start

Use the code below to get started with Tele-FLM.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained('CofeAI/Tele-FLM', trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained('CofeAI/Tele-FLM', torch_dtype=torch.bfloat16, low_cpu_mem_usage=True, device_map="auto", trust_remote_code=True)
inputs = tokenizer('Beijing is the capital of China.', return_tensors='pt').to(model.device)
generated = model.generate(**inputs, max_new_tokens=128, repetition_penalty=1.03)
print(tokenizer.decode(generated.cpu()[0], skip_special_tokens=True))

Training Details

Training Data

Our training dataset comprises a variety of domains, as detailed in the table below. The total amount of data is roughly 2 trillion, with English and Chinese data in a ratio of about 2:1. In line with the methodology of GPT-4, we collected some instruct data and incorporated it into our pre-training data after removing the test sets of common datasets using the strict n-gram-based method. We deliberately avoid “training on the test set” or any other benchmark-oriented trick.

DomainLanguageSampling Prop.EpochsDisk Size
Webtexten, zh75.21%1.05.9 TB
Codecode, zh9.81%1.0528.1 GB
Booken, zh7.17%0.8647.6 GB
WorldKnowledgemulti, en, zh2.87%2.567.5 GB
QAen, zh2.12%1.0159.2 GB
AcademicPaperen0.99%1.054.4 GB
Profession-Lawzh1.04%1.084.2 GB
Profession-Mathmath0.62%2.06.1 GB
Profession-Patentzh0.14%1.010.4 GB
Profession-Medicalzh0.02%1.01.2 GB
ClassicalChinesezh0.02%2.50.5 GB

Model Architecture

We adopt the architecture of FLM-101B as the backbone for Tele-FLM, with several modifications:

  • Rotary Positional Embedding (RoPE)
  • RMSNorm for normalization
  • SwiGLU for activation function
  • Linear bias disabled
  • Embedding and language model head untied
  • Input and output multiplier

Consequently, Tele-FLM is largely compatible with Llama architecturally. To maximize convenience for the community, we made minimal adjustments to Llama's code to adapt it to Tele-FLM and released it as open source.

In the pre-training stage, we employ μP for optimal hyperparameter search. The μP model (Tele-FLM_μP) is architecturally identical to Tele-FLM except for the model width. The architecture of Tele-FLM and Tele-FLM_μP is listed below. For more details of μP, please refer to our technical report and the original Tensor Program papers.

Modelslayernumberattentionheadshiddensizeffn hiddensizevocabsizecontextlengthparam size(M)
Tele-FLM64648,19221,82480,0004,09652,850
Tele-FLM_μP6445121,34480,0004,096283

Training Hyperparameters

Due to the smaller size, Tele-FLM_μP allows for significantly more experimental runs within fixed time and resource constraints. We searched seven hyperparameters for pretraining. All the hyperparameters are shown below.

Searched HyperparametersNon-Searched Hyperparameters
Learning Rate1.5e-4LR Schedule Typecosine
Matrix Learning Rate1.5e-4LR Schedule (tokens)2.5T
Minimum Learning Rate1.5e-5Warmup Step2,000
Standard Deviation4e-3Clip Grad1.0
Matrix Standard Deviation4.242e-3Weight Decay0.0
Input Mult1.0Batch Size (tokens)5,505,024
Output Mult3.125e-2RoPE Theta10,000

Training Loss

Hardware

Tele-FLM is trained on a cluster of 112 A800 SXM4 GPU servers, each with 8 NVLink A800 GPUs and 2TB of RAM. The nodes have varied CPU configurations: 96 nodes with Intel 8358 (128x 2.60GHz) CPUs and 16 nodes with AMD 7643 (96x 2.30GHz) CPUs. A

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys tele-flm for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (tele-flm below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tele-flm","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms