Text Generation
PEFT
Safetensors
physics
scenarios
next-frame-prediction
lora
sft
trl
unsloth
icml-2026
Instructions to use AlexWortega/lfm2-scenarios with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AlexWortega/lfm2-scenarios with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use AlexWortega/lfm2-scenarios with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlexWortega/lfm2-scenarios to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlexWortega/lfm2-scenarios to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AlexWortega/lfm2-scenarios to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="AlexWortega/lfm2-scenarios", max_seq_length=2048, )
| license: apache-2.0 | |
| base_model: LiquidAI/LFM2-350M | |
| library_name: peft | |
| pipeline_tag: text-generation | |
| tags: | |
| - physics | |
| - scenarios | |
| - next-frame-prediction | |
| - lora | |
| - sft | |
| - trl | |
| - unsloth | |
| - icml-2026 | |
| # lfm2-scenarios | |
| Sister checkpoint to [lfm2-physics](https://huggingface.co/AlexWortega/lfm2-physics) — LoRA fine-tune of `LiquidAI/LFM2-350M` on the physics scenarios dataset, with a different training regime / curriculum sampling. | |
| ## Adapter details | |
| - **Base**: `LiquidAI/LFM2-350M` | |
| - **Adapter type**: LoRA, r=32, alpha=64, dropout=0.0 | |
| - **Target modules**: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj | |
| - **Trainer**: `SFTTrainer` (TRL) via Unsloth | |
| - **Curriculum**: 5 stages, includes scenario-type stratified sampling | |
| - **Task**: autoregressive next-frame prediction; conditioning includes scenario Type, Difficulty, Static geometry, Constraints | |
| ## Stages | |
| - `stage0/` ... `stage4/` — checkpoints from each curriculum stage | |
| - `final/` — final adapter | |
| ## Usage | |
| ```python | |
| from peft import PeftModel | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| base = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2-350M") | |
| model = PeftModel.from_pretrained(base, "AlexWortega/lfm2-scenarios", subfolder="final") | |
| tokenizer = AutoTokenizer.from_pretrained("AlexWortega/lfm2-scenarios", subfolder="final") | |
| ``` | |
| ## Training data | |
| 900K scenes, 24 seen scenario types (avalanche, basketball, billiards, breakout, bridge, chain, conveyor, dominos, explosion, funnel, head_on, jenga, marble_run, orbit, pendulum, pinball, plinko, projectile, pyramid, seesaw, ski_jump, tower, wind, wrecking_ball). 6 types held out for OOD eval (pong, bowling, ramp_roll, angry_birds, hourglass, newtons_cradle). | |
| ## Citation | |
| ICML-2026 submission (in progress). | |