Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/flagrelease_en/model_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ FlagRelease/ERNIE-4.5-21B-A3B-PT-hygon-FlagOS
FlagRelease/ERNIE-4.5-21B-A3B-PT-nvidia-FlagOS
FlagRelease/ERNIE-4.5-300B-A47B-PT-FlagOS
FlagRelease/Emu3.5-FlagOS
FlagRelease/Fathom-R1-14B-hygon-FlagOS
FlagRelease/Fathom-R1-14B-metax-FlagOS
FlagRelease/GLM-4-32B-Base-0414-hygon-FlagOS
FlagRelease/GLM-4-32B-Base-0414-nvidia-FlagOS
Expand Down Expand Up @@ -86,6 +87,7 @@ FlagRelease/Kimi-K2-Thinking-FlagOS
FlagRelease/Kimi-Linear-48B-A3B-Instruct-hygon-FlagOS
FlagRelease/Kimi-Linear-48B-A3B-Instruct-nvidia-FlagOS
FlagRelease/LFM2-2.6B-Exp-metax-FlagOS
FlagRelease/MN-12B-Mag-Mell-R1-mthreads-FlagOS
FlagRelease/Meta-Llama-3-8B-Instruct-hygon-FlagOS
FlagRelease/Meta-Llama-3-8B-Instruct-nvidia-FlagOS
FlagRelease/MiniCPM-V-4-FlagOS
Expand All @@ -97,6 +99,7 @@ FlagRelease/MiniCPM-o-4.5-metax-FlagOS
FlagRelease/MiniCPM-o-4.5-nvidia-FlagOS
FlagRelease/MiniCPM-o-4.5-zhenwu-FlagOS
FlagRelease/MiniCPM4-8B-mthreads-FlagOS
FlagRelease/MiniCPM4.1-8B-mthreads-FlagOS
FlagRelease/MiniCPM5-1B-Armv9-FlagOS
FlagRelease/MiniCPM5-1B-ascend-FlagOS
FlagRelease/MiniCPM5-1B-hygon-FlagOS
Expand Down Expand Up @@ -125,10 +128,15 @@ FlagRelease/MiniMax-M3-nvidia-FlagOS
FlagRelease/MiniMax-M3-zhenwu-FlagOS
FlagRelease/Moonlight-16B-A3B-hygon-FlagOS
FlagRelease/Moonlight-16B-A3B-nvidia-FlagOS
FlagRelease/Phi-3-medium-128k-instruct-metax-FlagOS
FlagRelease/Phi-3-mini-128k-instruct-iluvatar-FlagOS
FlagRelease/Phi-3-mini-4k-instruct-iluvatar-FlagOS
FlagRelease/Phi-3.5-MoE-instruct-hygon-FlagOS
FlagRelease/Phi-3.5-MoE-instruct-nvidia-FlagOS
FlagRelease/Phi-3.5-mini-instruct-FlagOS
FlagRelease/Phi-3.5-mini-instruct-iluvatar-FlagOS
FlagRelease/Phi-3.5-mini-instruct-metax-FlagOS
FlagRelease/Phi-4-reasoning-plus-metax-FlagOS
FlagRelease/QwQ-32B-FlagOS-Cambricon
FlagRelease/QwQ-32B-FlagOS-Iluvatar
FlagRelease/QwQ-32B-FlagOS-Nvidia
Expand Down Expand Up @@ -159,6 +167,7 @@ FlagRelease/Qwen3-Next-80B-A3B-Instruct-FlagOS
FlagRelease/Qwen3-Next-80B-A3B-Instruct-metax-FlagOS
FlagRelease/Qwen3-Omni-30B-A3B-Instruct-FlagOS
FlagRelease/Qwen3-VL-235B-A22B-Instruct-FlagOS
FlagRelease/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-hygon-FlagOS
FlagRelease/Qwen3.5-35B-A3B-FlagOS
FlagRelease/Qwen3.5-35B-A3B-hygon-FlagOS
FlagRelease/Qwen3.5-35B-A3B-iluvatar-FlagOS
Expand Down Expand Up @@ -186,6 +195,7 @@ FlagRelease/RoboBrain2.0-7B-W8A16-FlagOS
FlagRelease/RoboBrain2.0-7B-metax-FlagOS
FlagRelease/RoboBrain2.5-8B-FlagOS
FlagRelease/RoboBrain2.5-8B-ascend-FlagOS
FlagRelease/SOLAR-10.7B-Instruct-v1.0-mthreads-FlagOS
FlagRelease/Seed-OSS-36B-Instruct-FlagOS
FlagRelease/Seed-OSS-36B-Instruct-hygon-FlagOS
FlagRelease/Seed-OSS-36B-Instruct-nvidia-FlagOS
Expand All @@ -196,7 +206,7 @@ FlagRelease/aya-23-8B-hygon-FlagOS
FlagRelease/deepseek-r1-1.5b-nvidia-FlagOS
FlagRelease/farm_molecular_representation-hygon-FlagOS
FlagRelease/farm_molecular_representation-nvidia-FlagOS
FlagRelease/gemma-1.1-7b-it-metax-FlagOS
FlagRelease/gemma-2-27b-it-hygon-FlagOS
FlagRelease/gpt-oss-120b-FlagOS
FlagRelease/grok-2-FlagOS
FlagRelease/llama-3-Korean-Bllossom-8B-hygon-FlagOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Environment Setup

### Download FlagOS Image
```bash
docker pull harbor.baai.ac.cn/external-cooperation/ai21-jamba-1.5-mini-hygon-tree_0.5.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607101038
docker pull harbor.baai.ac.cn/external-cooperation/ai21-jamba-1.5-mini-hygon-tree_0.5.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607291451
```

### Download Open-source Model Weights
Expand All @@ -61,7 +61,7 @@ docker run \
-v /data/models:/data/models \
-v /opt/hyhal:/opt/hyhal:ro \
-itd \
harbor.baai.ac.cn/external-cooperation/ai21-jamba-1.5-mini-hygon-tree_0.5.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607101038 \
harbor.baai.ac.cn/external-cooperation/ai21-jamba-1.5-mini-hygon-tree_0.5.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607291451 \
sleep infinity

docker exec -it ai21-jamba-hygon bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,21 @@ docker exec -it DeepSeek-R1-Distill-Qwen-1.5B-hygon-FlagOS bash
```
### Start the Server
```bash
export HIP_VISIBLE_DEVICES=0
export VLLM_PLUGINS=fl
export USE_FLAGGEMS=1
export VLLM_FL_FLAGOS_WHITELIST=softmax,rms_norm,add,sub,gather,masked_fill_,cumsum_out,lt,lt_scalar,where_self,where_self_out,arange_start,zero_,zeros,ones,full,rand_like,index,reciprocal,cos,sin,cat,to_copy,argmax,le,scatter

vllm serve \
ulimit -n 2048 && nohup env \
HIP_VISIBLE_DEVICES=0 \
VLLM_PLUGINS=fl \
USE_FLAGGEMS=1 \
VLLM_FL_FLAGOS_WHITELIST="arange_start,lt,where_self_out,argmax,zeros_like,bitwise_or_tensor,scatter,rsub_scalar,ones,cumsum,bitwise_and_tensor,resolve_neg,lt_scalar,sum_dim,add,diff,index,le,masked_fill,where_self,bitwise_not,gather,mul,zero_,nonzero,resolve_conj,cumsum_out,gt_scalar,softmax_out,softmax" \
vllm serve \
--model /data/models/DeepSeek-R1-Distill-Qwen-1.5B-hygon-FlagOS \
--served-model-name DeepSeek-R1-Distill-Qwen-1.5B-hygon-FlagOS \
--host 0.0.0.0 \
--port 46840 \
--enforce-eager
--gpu-memory-utilization 0.90 \
--trust-remote-code \
--tensor-parallel-size 2 \
--enforce-eager \
> DeepSeek-R1-Distill-Qwen-1.5B-hygon-FlagOS.log 2>&1 &
```

## Service Invocation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Environment Setup

### Download FlagOS Image
```bash
docker pull harbor.baai.ac.cn/external-cooperation/ernie-4.5-21b-a3b-pt-hygon-tree_0.5.0_hcu3.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0_das.opt1.dtk2604.20260206.g275d08c2-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607021138
docker pull harbor.baai.ac.cn/external-cooperation/ernie-4.5-21b-a3b-pt-hygon-tree_0.5.0_hcu3.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0_das.opt1.dtk2604.20260206.g275d08c2-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607291650
```

### Download Open-source Model Weights
Expand All @@ -69,7 +69,7 @@ docker run \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
-itd \
harbor.baai.ac.cn/external-cooperation/ernie-4.5-21b-a3b-pt-hygon-tree_0.5.0_hcu3.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0_das.opt1.dtk2604.20260206.g275d08c2-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607021138 \
harbor.baai.ac.cn/external-cooperation/ernie-4.5-21b-a3b-pt-hygon-tree_0.5.0_hcu3.0-gems_5.0.2-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.10.12-torch_2.9.0_das.opt1.dtk2604.20260206.g275d08c2-pcp_hygon-dpu_hygon-x86_64-driver_1.11.0:2607291650 \
sleep infinity
docker exec -it flagos bash
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
---
frameworks:
- ""
license: apache-2.0
language:
- zh
- en
license: apache-2.0
tasks: []
---
# Introduction
The advanced capabilities of the ERNIE 4.5 models, particularly the MoE-based A47B and A3B series, are underpinned by several key technical innovations:
Expand Down Expand Up @@ -73,7 +70,6 @@ docker exec -it flagos bash
export VLLM_PLUGINS=fl
export TRITON_ALL_BLOCKS_PARALLEL=1
export USE_FLAGGEMS=1

vllm serve \
--model /data/models/ERNIE-4.5-21B-A3B-PT-nvidia-FlagOS \
--tensor-parallel-size 1 \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Introduction
新模型介绍,待定....

### Integrated Deployment
- Out-of-the-box inference scripts with pre-configured hardware and software parameters
- Released **FlagOS-Hygon** container image supporting deployment within minutes
### Consistency Validation
- Rigorously evaluated through benchmark testing: Performance and results from the FlagOS software stack are compared against native stacks on multiple public.


# Evaluation Results
## Benchmark Result
| Metrics | Fathom-R1-14B-hygon-FlagOS-Origin | Fathom-R1-14B-hygon-FlagOS-FlagOS |
|--------------|-----------------------------------|-----------------------------------|
| GPQA_Diamond | 0 | 64.0 |
| ERQA | - | - |
| Aime24 | - | - |

# User Guide
Environment Setup

| Item | Version |
|------------------|----------------------|
| Docker Version | 28.2.2
28.2.2
22.04.1 |
| Operating System | Ubuntu 22.04.5 LTS (Jammy Jellyfish) |

## Operation Steps

### Download FlagOS Image
```bash
docker pull harbor.baai.ac.cn/flagrelease-public/fathom-r1-14b-hygon001-gems5.4.0-tree0.6.0-cxnone-plugin0.2.0-vllm0.20.2-cp310-pt210-dtknone-x64-none:202607300317-v4
```

### Download Open-source Model Weights
```bash
pip install modelscope
modelscope download --model FlagRelease/Fathom-R1-14B-hygon-FlagOS --local_dir /data/Fathom-R1-14B-FlagOS
```

### Start the Container
```bash
docker run -d --name flagos --net=host --ipc=host --device=/dev/kfd --device=/dev/mkfd --device=/dev/dri --group-add video -v /opt/hyhal:/opt/hyhal -v /data:/data -v /data:/data harbor.baai.ac.cn/flagrelease-public/fathom-r1-14b-hygon001-gems5.4.0-tree0.6.0-cxnone-plugin0.2.0-vllm0.20.2-cp310-pt210-dtknone-x64-none:202607300317-v4 sleep infinity
```
### Start the Server
```bash
VLLM_PLUGINS=fl vllm serve /data/Fathom-R1-14B-FlagOS --host 0.0.0.0 --port 8000 --served-model-name Fathom-R1-14B --tensor-parallel-size 1 --max-model-len 32768 --trust-remote-code --reasoning-parser deepseek_r1
```

## Service Invocation
### Invocation Script
```bash
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Fathom-R1-14B",
"messages": [{"role": "user", "content": "你好"}]
}'
```


### AnythingLLM Integration Guide

#### 1. Download & Install

- Visit the official site: https://anythingllm.com/
- Choose the appropriate version for your OS (Windows/macOS/Linux)
- Follow the installation wizard to complete the setup

#### 2. Configuration

- Launch AnythingLLM
- Open settings (bottom left, fourth tab)
- Configure core LLM parameters
- Click "Save Settings" to apply changes

#### 3. Model Interaction

- After model loading is complete:
- Click **"New Conversation"**
- Enter your question (e.g., "Explain the basics of quantum computing")
- Click the send button to get a response
# Technical Overview
**FlagOS** is a fully open-source system software stack designed to unify the "model–system–chip" layers and foster an open, collaborative ecosystem. It enables a "develop once, run anywhere" workflow across diverse AI accelerators, unlocking hardware performance, eliminating fragmentation among vendor-specific software stacks, and substantially lowering the cost of porting and maintaining AI workloads. With core technologies such as the **FlagScale**, together with vllm-plugin-fl, distributed training/inference framework, **FlagGems** universal operator library, **FlagCX** communication library, and **FlagTree** unified compiler, the **FlagRelease** platform leverages the **FlagOS** stack to automatically produce and release various combinations of \<chip + open-source model\>. This enables efficient and automated model migration across diverse chips, opening a new chapter for large model deployment and application.
## FlagGems
FlagGems is a high-performance, generic operator library implemented in [Triton](https://github.com/openai/triton) language. It is built on a collection of backend-neutral kernels that aims to accelerate LLM (Large-Language Models) training and inference across diverse hardware platforms.
## FlagTree
FlagTree is an open source, unified compiler for multiple AI chips project dedicated to developing a diverse ecosystem of AI chip compilers and related tooling platforms, thereby fostering and strengthening the upstream and downstream Triton ecosystem. Currently in its initial phase, the project aims to maintain compatibility with existing adaptation solutions while unifying the codebase to rapidly implement single-repository multi-backend support. For upstream model users, it provides unified compilation capabilities across multiple backends; for downstream chip manufacturers, it offers examples of Triton ecosystem integration.
## FlagScale and vllm-plugin-fl
Flagscale is a comprehensive toolkit designed to support the entire lifecycle of large models. It builds on the strengths of several prominent open-source projects, including [Megatron-LM](https://github.com/NVIDIA/Megatron-LM) and [vLLM](https://github.com/vllm-project/vllm), to provide a robust, end-to-end solution for managing and scaling large models.
vllm-plugin-fl is a vLLM plugin built on the FlagOS unified multi-chip backend, to help flagscale support multi-chip on vllm framework.
## **FlagCX**
FlagCX is a scalable and adaptive cross-chip communication library. It serves as a platform where developers, researchers, and AI engineers can collaborate on various projects, contribute to the development of cutting-edge AI solutions, and share their work with the global community.

## **FlagEval Evaluation Framework**
FlagEval is a comprehensive evaluation system and open platform for large models launched in 2023. It aims to establish scientific, fair, and open benchmarks, methodologies, and tools to help researchers assess model and training algorithm performance. It features:
- **Multi-dimensional Evaluation**: Supports 800+ model evaluations across NLP, CV, Audio, and Multimodal fields, covering 20+ downstream tasks including language understanding and image-text generation.
- **Industry-Grade Use Cases**: Has completed horizontal evaluations of mainstream large models, providing authoritative benchmarks for chip-model performance validation.

# Contributing

We warmly welcome global developers to join us:

1. Submit Issues to report problems
2. Create Pull Requests to contribute code
3. Improve technical documentation
4. Expand hardware adaptation support
# License
The model weights are derived from FractalAIResearch/Fathom-R1-14B and are open‑sourced under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Environment Setup

### Download FlagOS Image
```bash
docker pull harbor.baai.ac.cn/external-cooperation/glm-4-32b-base-0414-nvidia-tree_0.5.0-gems_0.5.1rc0-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.12.3-torch_2.9.0_cu128-pcp_cuda13.2-gpu_nvidia003-arc_amd64-driver_570.133.20:2606091434
docker pull harbor.baai.ac.cn/external-cooperation/glm-4-32b-base-0414-nvidia-tree_0.5.0-gems_0.5.1rc0-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.12.3-torch_2.9.0_cu128-pcp_cuda13.2-gpu_nvidia003-arc_amd64-driver_570.133.20:2607291857
```

### Download Open-source Model Weights
Expand All @@ -73,7 +73,7 @@ docker run -itd \
--privileged=true \
--shm-size=32G \
-v /data/models:/data/models \
harbor.baai.ac.cn/external-cooperation/glm-4-32b-base-0414-nvidia-tree_0.5.0-gems_0.5.1rc0-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.12.3-torch_2.9.0_cu128-pcp_cuda13.2-gpu_nvidia003-arc_amd64-driver_570.133.20:2606091434 \
harbor.baai.ac.cn/external-cooperation/glm-4-32b-base-0414-nvidia-tree_0.5.0-gems_0.5.1rc0-vllm_0.13.0-plugin_0.1.1-cx_none-python_3.12.3-torch_2.9.0_cu128-pcp_cuda13.2-gpu_nvidia003-arc_amd64-driver_570.133.20:2607291857 \
sleep infinity
docker exec -it flagos bash
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ docker exec -it flagos bash
### Start the Server

```bash
#建议按实际卡号调整
export VLLM_PLUGINS=fl
export TRITON_ALL_BLOCKS_PARALLEL=1
export USE_FLAGGEMS=1
export HIP_VISIBLE_DEVICES=2,3
export VLLM_FL_FLAGOS_WHITELIST="arange_start,lt,where_self_out,argmax,zeros_like,bitwise_or_tensor,scatter,rsub_scalar,ones,cumsum,bitwise_and_tensor,resolve_neg,lt_scalar,sum_dim,add,diff,index,le,masked_fill,where_self,bitwise_not,gather,mul,zero_,nonzero,resolve_conj,cumsum_out,gt_scalar,softmax_out,softmax"

ulimit -n 2048 && nohup vllm serve \
ulimit -n 2048 && nohup env VLLM_FL_FLAGOS_WHITELIST="arange_start,lt,where_self_out,argmax,zeros_like,bitwise_or_tensor,scatter,rsub_scalar,ones,cumsum,bitwise_and_tensor,resolve_neg,lt_scalar,sum_dim,add,diff,index,le,masked_fill,where_self,bitwise_not,gather,mul,zero_,nonzero,resolve_conj,cumsum_out,gt_scalar,softmax_out,softmax" vllm serve \
--model /data/Kimi-Linear-48B-A3B-Instruct-hygon-FlagOS \
--served-model-name kimi-linear-48b-a3b-instruct-flagos \
--host 0.0.0.0 \
Expand Down
Loading