Text Generation
Transformers
Safetensors
qwen2
reinforcement-learning
agentic-rl
alfworld
strata
grpo
qwen2.5
conversational
text-generation-inference
Instructions to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120") model = AutoModelForCausalLM.from_pretrained("chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120
- SGLang
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120 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 "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120" \ --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": "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120", "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 "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120" \ --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": "chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120 with Docker Model Runner:
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step120
Add FSDP training state (resume from this step)
Browse files- training_state/extra_state_world_size_2_rank_0.pt +3 -0
- training_state/extra_state_world_size_2_rank_1.pt +3 -0
- training_state/fsdp_config.json +4 -0
- training_state/model_world_size_2_rank_0.pt +3 -0
- training_state/model_world_size_2_rank_1.pt +3 -0
- training_state/optim_world_size_2_rank_0.pt +3 -0
- training_state/optim_world_size_2_rank_1.pt +3 -0
training_state/extra_state_world_size_2_rank_0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1077912df65bb09f3d42a06485d1bcbbd35b70304ce4e0fffa49089d166b7626
|
| 3 |
+
size 15077
|
training_state/extra_state_world_size_2_rank_1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee6f4bc3a2ee8ea627b30f102c1425fe9fed4c46016f0790fe0cf8c9de8d6b54
|
| 3 |
+
size 15077
|
training_state/fsdp_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"FSDP_version": 1,
|
| 3 |
+
"world_size": 2
|
| 4 |
+
}
|
training_state/model_world_size_2_rank_0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d3e5928ce7585d4560ad51697a3257effefd2dea19f32d2b5802c653905b308
|
| 3 |
+
size 3554364971
|
training_state/model_world_size_2_rank_1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:000836fba4bbdfe5e8851d999837f973cb45624b3f0c14d36d99712c909bc6c8
|
| 3 |
+
size 3554364971
|
training_state/optim_world_size_2_rank_0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec201bfe6affbbe199d381de298720240c6665af91a2ad79bb75fad63e35fd12
|
| 3 |
+
size 6175003248
|
training_state/optim_world_size_2_rank_1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:593b54d3a08e702923d08d3fad77353c518e0253fd6949e059f5fc6919ca503a
|
| 3 |
+
size 6175003248
|