Jaasssoooonnnnn/FirstLight-Zero
Jaasssoooonnnnn/FirstLight-Zero has 18 GitHub stars and 2 forks. GitHot measured +2 stars in 24 hours. Last checked 2026-11-12 11:28 UTC. Last push 2026-11-04.
AlphaZero-style self-play Clash Royale. It beats a human-data imitation model
측정된 스타 증가
- in 24h
- +2
- in 7 days
- 업데이트 지연
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
FirstLight Zero
A small Clash Royale model that learned the 3.0 X-Bow mirror from self-play alone, with no human data.
English · 简体中文
Training history · Training metrics · Getting started · Architecture · Evaluation · Model
Every strong Clash Royale AI I know of starts from human replays. I wanted to see whether a model could get there without them, so this one started from random weights and only ever played against itself and its older versions. Nobody told it what the deck does.
After 1,450 training rounds, the 1.17M-parameter model beats a 16.8M-parameter imitation model that was trained on 193,530 top ladder games.
Results
40 games, in the X-Bow mirror at level 11. checkpoints/ holds every 50th version from v50 to v1500; v1450 is the one to use.
| Opponent | Size | Trained on | Our version | Win rate |
|---|---|---|---|---|
| IL Model Everlight | 16.8M | 193,530 human games | v1460 | 97.5% |
It was never part of training. The training history has the whole curve and how the model's play changed version by version.
What's here
| Path | Contents |
|---|---|
firstlight_zero/ |
Training and evaluation: features, model, collectors, inference servers, PPO learner, sweeps and round robins |
native_runner/ |
The battle environment layer, trimmed from FirstLight CR, with the probe source in native_runner/probe/ |
tools/ |
Evaluation servers, tactics analysis, replay export and replay checks |
checkpoints/ |
Every 50th version, firstlight-zero-v50.pt to firstlight-zero-v1500.pt |
docs/ |
The guides linked above |
Quick start
You need Python 3.12, a GPU for training, and native battle engines for version 15.535.13. This repository doesn't include the game client. FirstLight CR has the full stack for building an engine from a client you supply: probe, APK tools, environment and a training guide. Getting started lists exactly what this code expects.
pip install -r requirements.txt
python tests/test_consistency.py # needs no engine
cp engines.example.json engines.json # one entry per engine process
python firstlight_zero/launch.py prepare --run runs/first
python firstlight_zero/launch.py start --run runs/first > runs/first/supervisor.log 2>&1 &
python tools/status.py runs/first
To train with different settings, pass --set to prepare. To evaluate the included model, see Use the pretrained model.
Acknowledgements
Thanks to daybreak-cr. Its asynchronous training framework inspired the one here, which made my PPO training throughput 1.5 times faster than before.
License
FirstLight Zero is an independent offline project under Apache-2.0, unaffiliated with Supercell. It doesn't distribute the game or its resources and doesn't connect to official servers. See NOTICE.
관련 프로젝트 살펴보기
tensorflow/tensorflow
모두를 위한 오픈소스 머신러닝 프레임워크
201,584 스타huggingface/transformers
🤗 Transformers: 텍스트, 비전, 오디오, 멀티모달 분야의 최첨단 머신러닝 모델을 위한 모델 정의 프레임워크로, 추론과 학습을 모두 지원합니다.
168,917 스타AUTOMATIC1111/stable-diffusion-webui
Stable Diffusion 웹 UI
165,300 스타Comfy-Org/ComfyUI
그래프와 노드로 구성된 인터페이스를 갖춘, 가장 강력하고 모듈성이 뛰어난 확산 모델 GUI, API, 백엔드입니다. 세계에서 가장 빠른 로컬 추론 엔진입니다.
146,472 스타