Instructions to use mobilegym/sft-grpo-lambda0-kappa0-format0-20261110 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mobilegym/sft-grpo-lambda0-kappa0-format0-20261110 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="mobilegym/sft-grpo-lambda0-kappa0-format0-20261110") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("mobilegym/sft-grpo-lambda0-kappa0-format0-20261110") model = AutoModelForMultimodalLM.from_pretrained("mobilegym/sft-grpo-lambda0-kappa0-format0-20261110", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mobilegym/sft-grpo-lambda0-kappa0-format0-20261110 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/mobilegym/sft-grpo-lambda0-kappa0-format0-20261110
- SGLang
How to use mobilegym/sft-grpo-lambda0-kappa0-format0-20261110 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mobilegym/sft-grpo-lambda0-kappa0-format0-20261110", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use mobilegym/sft-grpo-lambda0-kappa0-format0-20261110 with Docker Model Runner:
docker model run hf.co/mobilegym/sft-grpo-lambda0-kappa0-format0-20261110
SFT epoch 5 + terminal-reward GRPO, step 71
Final merged inference checkpoint from sft-grpo-lambda0-kappa0-format0-20261110.
Initialized from OpenMobile SFT epoch 5 revision 3732906e9fc071c6407b04ecb5f59a613d8d1e03 with fresh optimizer and data cursor. Completed 71 updates, 844 original tasks plus 8 batch-fill instances, 8 rollouts per task.
GRPO uses within-group standard-deviation normalization and vanilla PPO loss. Process, action and format auxiliary coefficients are zero; terminal reward is goal success. The custom algorithm code path remains enabled. This is a zero-auxiliary-coefficient GRPO baseline, not an independently executed unmodified native implementation. Unit tests checked advantage equivalence with native terminal GRPO.
Contains inference weights, tokenizer and processor; excludes optimizer and distributed resume state.
Single-seed evaluation
MobileGym: 256 tasks, goal success 44/256 (17.1875%), strict success 42/256 (16.40625%), average progress 30.1125%, errors 0.
MobileGym++: 215 recorded tasks, goal success 25/215 (11.6279%), strict success 10/215 (4.6512%). Seventeen context-limit errors counted as unsuccessful under the experiment reporting policy. Full-suite average progress has not been finalized.
- Downloads last month
- 13