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-step010 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-step010 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-step010") 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-step010") model = AutoModelForCausalLM.from_pretrained("chanyoungkim/strata-qwen2.5-1.5b-alfworld-step010", 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-step010 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-step010" # 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-step010", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step010
- SGLang
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step010 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-step010" \ --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-step010", "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-step010" \ --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-step010", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step010 with Docker Model Runner:
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step010
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:e422a6511cc70ddabef8bee110ff4072fbc25f3c01a9a2e63d6c39541be7ca5f
|
| 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:15a1387e70675c50d2d438bff2de881a056b1ddd1ead87e7397bde13afaf9308
|
| 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:2f5819f41c4b651091feaa8864056965fd09a2152b8e45ec883ece64f4da1836
|
| 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:e4d358c4fd53a32c9bf1ea7592236f017c26c4818ab6123d00c11f716317296c
|
| 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:fc0a01e495fa5c43e76cc21fd9f2af3c5e9eee45a2cbc3aebe682816293eb710
|
| 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:7f4e75655bc76f69ad3c7c701eeca3699e4684ad3c262a42a3e82dcdf4329127
|
| 3 |
+
size 6175003248
|