Skip to content

Commit 3bfcb07

Browse files
author
Tilelli LAB
committed
i18n: add Simplified Chinese translations of all docs
Adds zh-CN versions of all 22 docs; switcher now spans English/Français/ Español/简体中文. Additive only; code untouched.
1 parent 8cfcad9 commit 3bfcb07

88 files changed

Lines changed: 1913 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODE_OF_CONDUCT.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](CODE_OF_CONDUCT.md) · [Français](CODE_OF_CONDUCT.fr.md) · **Español** <!-- i18n-switcher -->
1+
[English](CODE_OF_CONDUCT.md) · [Français](CODE_OF_CONDUCT.fr.md) · **Español** · [简体中文](CODE_OF_CONDUCT.zh-CN.md) <!-- i18n-switcher -->
22

33
# Código de conducta
44

CODE_OF_CONDUCT.fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](CODE_OF_CONDUCT.md) · **Français** · [Español](CODE_OF_CONDUCT.es.md) <!-- i18n-switcher -->
1+
[English](CODE_OF_CONDUCT.md) · **Français** · [Español](CODE_OF_CONDUCT.es.md) · [简体中文](CODE_OF_CONDUCT.zh-CN.md) <!-- i18n-switcher -->
22

33
# Code de conduite
44

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**English** · [Français](CODE_OF_CONDUCT.fr.md) · [Español](CODE_OF_CONDUCT.es.md) <!-- i18n-switcher -->
1+
**English** · [Français](CODE_OF_CONDUCT.fr.md) · [Español](CODE_OF_CONDUCT.es.md) · [简体中文](CODE_OF_CONDUCT.zh-CN.md) <!-- i18n-switcher -->
22

33
# Code of Conduct
44

CODE_OF_CONDUCT.zh-CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[English](CODE_OF_CONDUCT.md) · [Français](CODE_OF_CONDUCT.fr.md) · [Español](CODE_OF_CONDUCT.es.md) · **简体中文** <!-- i18n-switcher -->
2+
3+
# 行为准则
4+
5+
本项目遵循 [Contributor Covenant,2.1 版](https://www.contributor-covenant.org/version/2/1/code_of_conduct/)
6+
7+
简而言之:保持尊重、假定善意,并将讨论聚焦于工作本身。无论背景或身份如何,欢迎每个人做贡献。对不可接受行为的举报可私下发送至 **hello@atomelm.com**,将得到迅速且保密的审阅。
8+
9+
Contributor Covenant 的完整文本——包括完整的执行指南——见上方链接,并完整适用于本项目。

CONTRIBUTING.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](CONTRIBUTING.md) · [Français](CONTRIBUTING.fr.md) · **Español** <!-- i18n-switcher -->
1+
[English](CONTRIBUTING.md) · [Français](CONTRIBUTING.fr.md) · **Español** · [简体中文](CONTRIBUTING.zh-CN.md) <!-- i18n-switcher -->
22

33
# Contribuir a Atome LM
44

CONTRIBUTING.fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](CONTRIBUTING.md) · **Français** · [Español](CONTRIBUTING.es.md) <!-- i18n-switcher -->
1+
[English](CONTRIBUTING.md) · **Français** · [Español](CONTRIBUTING.es.md) · [简体中文](CONTRIBUTING.zh-CN.md) <!-- i18n-switcher -->
22

33
# Contribuer à Atome LM
44

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**English** · [Français](CONTRIBUTING.fr.md) · [Español](CONTRIBUTING.es.md) <!-- i18n-switcher -->
1+
**English** · [Français](CONTRIBUTING.fr.md) · [Español](CONTRIBUTING.es.md) · [简体中文](CONTRIBUTING.zh-CN.md) <!-- i18n-switcher -->
22

33
# Contributing to Atome LM
44

CONTRIBUTING.zh-CN.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[English](CONTRIBUTING.md) · [Français](CONTRIBUTING.fr.md) · [Español](CONTRIBUTING.es.md) · **简体中文** <!-- i18n-switcher -->
2+
3+
# 为 Atome LM 做贡献
4+
5+
感谢你考虑做贡献。这是一个小而聚焦的项目——一个微型三元语言模型 + 一个与它逐位精确对话的 C99 推理引擎。请先读 `PROJECT_CONTENT.md`;它涵盖了你绝不能破坏的东西。
6+
7+
## 快速开始
8+
9+
```bash
10+
git clone https://github.com/TilelliLab/atome-lm
11+
cd atome-lm
12+
./install.sh
13+
. .venv/bin/activate
14+
pytest -q # expect: 146 passed (or 145 + 1 skipped without qemu-system-arm)
15+
```
16+
17+
## 报告 bug
18+
19+
在 GitHub 上开一个 issue,并附上:
20+
21+
- 你运行了什么(确切命令)
22+
- 你预期什么
23+
- 发生了什么(完整错误,而非转述)
24+
- 你的平台:操作系统、Python 版本,以及 `python -c "import torch; print(torch.__version__)"`
25+
26+
如果你遇到一致性失败(Python 前向 ≠ C 前向),请附上失败的随机种子以及你训练的任何检查点——这些是最高优先级的 bug。
27+
28+
## 提交 pull request
29+
30+
1. Fork 仓库并从 `main` 创建一个分支。
31+
2. 做你的改动。
32+
3. 运行完整测试套件——每个 PR 都必须保持 `pytest -q` 通过。
33+
4. 如果你的改动触及 `atome_llm/core/``c_engine/upstream/` 或导出格式,请**特别确认**这些测试仍然通过:
34+
- `tests/test_parity_with_c.py` — 单次前向 Python ↔ C 一致性
35+
- `tests/test_parity_multitoken.py` — 多 token Python ↔ C 一致性
36+
- `tests/test_export_format.py` — 二进制格式 + 头生成
37+
5. 开启 PR。CI 会在 Python 3.10 / 3.11 / 3.12 上重新运行套件。
38+
39+
## 可接受改动的范围
40+
41+
欢迎:
42+
43+
- Bug 修复
44+
- 新的测试覆盖(尤其是对 C 解析器的模糊测试用例以及对 `atome_predict_next` / `atome_generate` 的边界输入)
45+
- 保持逐位精确一致性的性能改进
46+
- 文档修正与澄清
47+
- `c_engine/targets/` 下新的 MCU 目标板,*只要它们不改动 upstream 引擎*
48+
- `atome_llm/baselines/` 下用于诚实 A/B 对比的新基线
49+
50+
超出范围,请不要为这些开 PR:
51+
52+
-`c_engine/upstream/` 添加堆分配、动态内存或 libc 依赖
53+
- 向确定性代码路径添加"不应发生"的回退
54+
- 打包新的分词器(BPE / sentencepiece)——字节分词器是面向 MCU 闪存预算的承重设计选择
55+
- 破坏 Python ↔ C 一致性的改动,即便它改善了某个基准
56+
- 在没有完整一致性 + 边界检查覆盖的情况下把代码从 `c_engine/experiments/` 提升到 `c_engine/upstream/` 的新功能
57+
58+
## 编码规范
59+
60+
- Python:保持简单,无辅助层,无为风格而设的装饰器。贴合既有风格——小函数、无过早抽象、只有当*为何*不显然时才写注释。
61+
- C:仅 C99,无 GNU 扩展,除 `<string.h>` / `<math.h>` / `<stdint.h>` 外无 libc。由编译期 `ATOME_*` 宏定尺寸的静态缓冲区。对所有公共 API 输入做边界检查。
62+
63+
## 安全
64+
65+
如果你发现一个安全问题(任何能让恶意检查点或 `.atome` blob 危害运行引擎的主机的东西),请发邮件至 **hello@atomelm.com** 而非提交一个公开 issue。我们会协调披露。
66+
67+
## 许可证
68+
69+
提交贡献即表示你同意它将以 Apache License 2.0(项目许可证——见 `LICENSE`)发布。

FRONTIER.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](FRONTIER.md) · [Français](FRONTIER.fr.md) · **Español** <!-- i18n-switcher -->
1+
[English](FRONTIER.md) · [Français](FRONTIER.fr.md) · **Español** · [简体中文](FRONTIER.zh-CN.md) <!-- i18n-switcher -->
22

33
# Atome LM — Hallazgos de frontera
44

FRONTIER.fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[English](FRONTIER.md) · **Français** · [Español](FRONTIER.es.md) <!-- i18n-switcher -->
1+
[English](FRONTIER.md) · **Français** · [Español](FRONTIER.es.md) · [简体中文](FRONTIER.zh-CN.md) <!-- i18n-switcher -->
22

33
# Atome LM — Résultats de frontière
44

0 commit comments

Comments
 (0)