Instructions to use skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75") model = AutoModelForCausalLM.from_pretrained("skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75
- SGLang
How to use skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75 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 "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75" \ --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": "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75" \ --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": "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75 with Docker Model Runner:
docker model run hf.co/skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75
CoPE on ALFWorld: Qwen2.5-7B-Instruct, seed 1, step 75
This is Qwen2.5-7B-Instruct trained on ALFWorld with CoPE (code: https://github.com/ulab-uiuc/CoPE), which here is GRPO plus the action-forecast auxiliary loss. It is the actor at training step 75 of 264 (2 epochs), seed 1.
The weights were merged from verl's FSDP checkpoint into a bf16 Hugging Face model. Only the weights are here: there is
no optimizer or dataloader state, so this cannot continue that training run exactly. generation_config.json is the
base model's.
Training score at this step
| Score | |
|---|---|
| Step 75 | 0.945 |
| Mean of steps 66-75 | 0.916 |
The score is critic/score/mean: the training batch's ALFWorld success rate, over 16 tasks ร 8 rollouts. It is not a
held-out evaluation.
Training settings
- Batch: 16 prompts ร 8 rollouts.
- Optimizer and losses: lr 1e-6, KL 0.001 (low_var_kl), entropy 0.002.
- Rollouts: up to 20 rounds, 512 tokens per turn.
- Action forecast: coefficient 0.01, K 3, gate
wins, group norm on, skip invalid on. - Hardware: 4ร H20.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "skyyyyks/cope-alfworld-qwen2.5-7b-seed1-step75"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16", device_map="auto")
- Downloads last month
- 26