Instructions to use benchflow/Feynman-0-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use benchflow/Feynman-0-Flash with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("zai-org/GLM-5.3-Flash") model = PeftModel.from_pretrained(base_model, "benchflow/Feynman-0-Flash") - Notebooks
- Google Colab
- Kaggle
Download README.md from benchflow/Feynman-0-Flash: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/benchflow/Feynman-0-Flash/resolve/main/README.md
- Command line
-
hf download hf://benchflow/Feynman-0-Flash/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/benchflow/Feynman-0-Flash/resolve/main/README.md
license: apache-2.0
base_model: zai-org/GLM-5.3-Flash
library_name: peft
tags:
- lora
- reinforcement-learning
- physics
- science
- agents
extra_gated_heading: Request access to Feynman-0 Flash
extra_gated_description: We review each request.
extra_gated_prompt: >-
Feynman-0 Flash is released for research. When you submit this form, Hugging
Face shares your username and email address with BenchFlow. Tell us who you
are and how you plan to use the adapter.
extra_gated_fields:
Name: text
Affiliation: text
Intended use: text
I agree to use Feynman-0 Flash for research and not to redistribute the weights: checkbox
extra_gated_button_content: Submit request
Feynman-0 Flash
Feynman-0 Flash is BenchFlow's first agentic model for science. It is a rank-32 LoRA adapter on GLM-5.3-Flash, a 320B-parameter mixture-of-experts model, trained with reinforcement learning on physics research tasks that physicists wrote.
Trained on physics alone, Feynman-0 Flash scores above GLM-5.3-Flash on all five benchmarks we ran, spanning physics, other sciences and coding. On FrontierPhysics, a benchmark of end-to-end physics research projects, it solves 4 of 56 tasks, up from none, and the blog post publishes the four research papers it wrote. On Terminal-Bench-Science, it scores 9.4% against 5.8% for GLM-5.3-Flash run in the same setup, and five of the six tasks it newly solves lie outside physics.
- Blog post and technical report: Feynman-0 Flash: First Steps Toward Scalable RL on Science Tasks
- BenchFlow, our open-source framework for RL environments for agents: github.com/benchflow-ai/benchflow
- The frozen training task set and the training and evaluation code are available on request through our contact page.
The model is named after Richard Feynman, and the 0 marks a first step: an adapter on an existing model.
Results
| Benchmark | GLM-5.3-Flash | Feynman-0 Flash | Baseline and scoring |
|---|---|---|---|
| FrontierPhysics | 0%, none of 19 tasks | 7.1%, 4 of 56 tasks | Our run of GLM-5.3-Flash in the same setup. Tasks solved out of all 56: a task counts as solved when any of its trials passes, and the 8 tasks we did not run count as unsolved. |
| Terminal-Bench-Science | 5.8% | 9.4% | Our run of GLM-5.3-Flash in the same harness and time limits. Pass@1 over 69 tasks; the 95% interval on Feynman-0 Flash's score is 3.6 to 15.9. |
| Terminal-Bench 4.0 | 35.8% | 38.1% | GLM-5.3-Flash's official Claude Code leaderboard entry. Feynman-0 Flash counts the first trial on each of 63 of the 66 tasks on our servers. |
| SciCode | 51.6% | 56.1% | Pass@1 in Artificial Analysis's setup with background text. The baseline is Artificial Analysis's published score. |
| GPQA Diamond | 89.5% | 89.8% | Our run of GLM-5.3-Flash in the same single-shot setup, 8 samples per question. |
On Terminal-Bench-Science, our run of GLM-5.3-Flash solved 4 of 69 tasks. Feynman-0 Flash newly solved 6 tasks and newly failed 2, and it scores higher in each of three domain groups: physics, other physical sciences and engineering, and all other domains. On the 19 FrontierPhysics tasks both models ran, Feynman-0 Flash newly solved 2 and newly failed none, and every passing trial finished within its task's own time limit.
On Terminal-Bench-Science, Feynman-0 Flash took more turns than our run of GLM-5.3-Flash on 61 of 68 paired tasks and wrote less per turn on 65. After evaluation, we audited every scored agentic trial with saved logs for reward hacking and found none: no agent fetched a benchmark's solution, tests or repository, and no trial read or edited a verifier.
Training
Physicists wrote containerized research environments from their own work, drawing on published literature and reconstructed private laboratory datasets, and domain specialists audited the physics of every task. Every training task was finished by 31 July 2026, before FrontierPhysics authoring began and before Terminal-Bench-Science and Terminal-Bench 4.0 were released. Calibrating difficulty to GLM-5.3-Flash gave 202 trainable tasks, which we added to the training pipeline. Before training, we screened every candidate against the evaluation suites and dropped the tasks that use public data; name checks after the pool froze found no matches.
Programmatic tests grade each attempt's final workspace. Most verifiers are pass-or-fail, and the rest award partial credit. Some tasks also carry a rubric written by their author, and on those tasks a rubric veto lets a model judge set a passing reward to zero. The objective is GRPO-style and group-relative: the group mean is subtracted with no division by the standard deviation, and there is no KL or entropy term.
The adapter is a rank-32 LoRA with lora_alpha 32 on GLM-5.3-Flash's attention, shared-expert, routed-expert and
dense MLP projections, listed in adapter_config.json, with bfloat16 weights. Training ran in mini-swe-agent with
bash as the only tool. Every agentic score above comes from Claude Code, a harness Feynman-0 Flash never trained in.
Evaluation setup
Agentic evaluations ran in Claude Code 2.1.285 against SGLang with a 200,000-token context window. Claude Code sends no sampling parameters, so the engine applied GLM-5.3-Flash's defaults of temperature 1 and top-p 0.95. Our engines decode more slowly with the adapter loaded, so both our run of GLM-5.3-Flash and Feynman-0 Flash ran at three times each task's time limit on both science benchmarks: 6 to 12 hours on FrontierPhysics and 24 hours on Terminal-Bench-Science.
SciCode follows Artificial Analysis's background-text setup: 65 test problems with 288 sub-problems, prompts that include the background text, a 300-second grading limit, a 131,072-token output cap, temperature 1 and maximum thinking effort. GPQA Diamond averages 8 single-shot samples on each of its 198 questions, in the same setup for both models.
Usage
Request access on this page. Once approved, log in with hf auth login using a token that can read this repository,
then download the adapter:
hf download benchflow/Feynman-0-Flash --local-dir Feynman-0-Flash
SGLang, the setup we evaluated with
These are the LoRA settings our evaluation engines used, on SGLang commit 94c97e3a with GLM-5.3-Flash's FP8 weights
on 8 GPUs:
python3 -m sglang.launch_server \
--model-path zai-org/GLM-5.3-Flash \
--tp-size 8 --ep-size 8 \
--moe-runner-backend triton --disable-shared-experts-fusion \
--enable-lora --max-lora-rank 32 --lora-backend triton --max-loras-per-batch 2 \
--lora-target-modules q_proj k_proj v_proj b_proj f_a_proj f_b_proj g_a_proj g_b_proj \
q_a_proj q_b_proj kv_a_proj_with_mqa kv_b_proj o_proj gate_proj up_proj down_proj \
--lora-paths feynman-0-flash=$PWD/Feynman-0-Flash \
--tool-call-parser glm47 --reasoning-parser glm45 --trust-remote-code
Select the adapter in the model field of an OpenAI-compatible request as base-model:adapter-name:
curl http://localhost:30000/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "zai-org/GLM-5.3-Flash:feynman-0-flash",
"messages": [{"role": "user", "content": "..."}]
}'
On the build we used, a request that named the adapter alone, as "model": "feynman-0-flash", was served by the base
model, so check that each response reports the prefixed name.
vLLM, not tested by us
vLLM lists LoRA support for GLM-5.3-Flash's architecture, Glm5NextForConditionalGeneration. Following its LoRA
documentation:
vllm serve zai-org/GLM-5.3-Flash \
--tensor-parallel-size 8 \
--enable-lora --max-lora-rank 32 \
--lora-modules feynman-0-flash=$PWD/Feynman-0-Flash
Requests select the adapter with "model": "feynman-0-flash". We have not served the adapter with vLLM; compare a few
outputs with SGLang before relying on it.
PEFT and Transformers
from transformers import AutoModelForImageTextToText
from peft import PeftModel
base = AutoModelForImageTextToText.from_pretrained("zai-org/GLM-5.3-Flash", device_map="auto")
model = PeftModel.from_pretrained(base, "benchflow/Feynman-0-Flash")
With transformers 5.24.1 and peft 0.22.0, this applies the adapter's attention, shared-expert and dense-layer weights but not its routed-expert weights, and it warns only about vision-tower keys, so the partial load is easy to miss. Transformers stores GLM-5.3-Flash's routed experts as fused tensors, while this adapter holds one LoRA pair per expert, the layout SGLang serves. We checked this by loading the adapter's tensor names onto an empty model, without loading any weights. To reproduce our results, serve the adapter with SGLang as above.
Reading the results
- Two of the five baselines come from other setups: GLM-5.3-Flash's official Terminal-Bench 4.0 entry and Artificial Analysis's published SciCode score. The other three are our own runs of GLM-5.3-Flash in Feynman-0 Flash's setup.
- The FrontierPhysics count rests on four solved tasks out of 56. Our run of GLM-5.3-Flash on it covered 19 tasks with one trial each.
- Training used
mini-swe-agentwithbashas the only tool; every agentic evaluation ran in Claude Code.
Files
adapter_model.safetensors: the adapter weights behind every score on this card.adapter_config.json: the PEFT LoRA configuration, namingzai-org/GLM-5.3-Flashas the base model.LICENSE: the Apache License 2.0.
License
Apache License 2.0; the full text is in LICENSE. The base model, GLM-5.3-Flash, is released under the MIT license,
and its use follows that license.
Citation
@misc{benchflow2026feynman0flash,
title = {{Feynman-0 Flash: First Steps Toward Scalable RL on Science Tasks}},
author = {{BenchFlow}},
year = {2026},
month = dec,
howpublished = {\url{https://benchflow.ai/feynman-0}},
note = {Feynman-0 Flash: GLM-5.3-Flash with a rank-32 LoRA adapter trained with RL on agentic physics tasks}
}