Downloads · 30 days
43
13% of all-time downloads
amayuelas/Qwen3.8-27B-MatRL-MT-RL
Qwen3.8-27B-MatRL-MT-RL is a text generation model from amayuelas. Use it when you need the model to write or continue text. It is set up for transformers.
Multi-turn RL for novel inorganic crystal structure generation, trained with tool use against a machine-learned interatomic potential (MLIP) reward.
Downloads · 30 days
43
13% of all-time downloads
All-time downloads
319
Public
Parameters
27.4B
54.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors54.7 GB · 100%
From the Hugging Face model README
Multi-turn RL for novel inorganic crystal structure generation, trained with tool use against a machine-learned interatomic potential (MLIP) reward.
This is the 27B arm of the MatRL scale series. The 4B and 9B arms are Qwen3.5-4B-MatRL-MT-RL and Qwen3.5-9B-MatRL-MT-RL.
Intermediate checkpoint. This is step 100 of RL stage 2c — roughly 170 of a planned 400 cumulative RL steps. It is released as a work-in-progress snapshot, not a final model. See Known issues before using it.
Built on Qwen/Qwen3.8-27B (27.36B params, 64 layers, hidden size 5120, hybrid
linear/full attention).
Note that config.json reports model_type: "qwen3_5" and
Qwen3_5ForConditionalGeneration — Qwen3.8 is a version bump of the Qwen3.5 architecture,
not a new one. The tokenizer and chat template are Qwen3.8's and differ from Qwen3.5's;
use the ones shipped in this repo rather than substituting Qwen3.5's.
| Stage | Steps | Note |
|---|---|---|
| Cold-start SFT | 420 | multi-turn corpus, filtered at seq_len 16384 through this model's renderer |
| RL stage 1 | 30 | |
| RL stage 2 | 10 | |
| RL stage 2b | 30 | |
| RL stage 2c | 100 | this checkpoint |
Cumulative: 170 RL steps on top of the SFT.
The model works in a multi-turn tool loop (up to 10 turns) proposing crystal structures, then submits a final candidate. Task mix: unconditional generation, target formula, target element set, and property-conditioned targets (band gap, bulk modulus).
Tools: retrieve_materials, propose_structure, substitute_element, check_novelty,
evaluate_structure, predict_band_gap, calculate_bulk_modulus, submit.
Reward is a weighted rubric over submission, validity, novelty, honest stability (MLIP
relaxation, equflashv2 backend), SUN bonuses, property-target match, group diversity,
efficiency, and format.
max_completion_tokens 2048, max_model_len 32768from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "amayuelas/Qwen3.8-27B-MatRL-MT-RL"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
The model expects the multi-turn tool-calling format it was trained in; use the bundled
chat_template.jinja.
Inherits the license of the base model, Qwen/Qwen3.8-27B.