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-step090 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-step090 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-step090") 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-step090") model = AutoModelForCausalLM.from_pretrained("chanyoungkim/strata-qwen2.5-1.5b-alfworld-step090", 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-step090 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-step090" # 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-step090", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step090
- SGLang
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step090 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-step090" \ --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-step090", "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-step090" \ --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-step090", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step090 with Docker Model Runner:
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step090
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:dd30fb24a305cc85ee53f22b71fe7c6198800302e7fa4a15e2156b397fad5d17
|
| 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:cf58a68c772306d61c3dc3e1f99e47aa306a8484189049a74fd1d2444e0fbcd8
|
| 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:38c9e6f9f23043fdf73c15de761d5aadf968bb46753f176c657b77f8b100e441
|
| 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:399b78af41b128cf57d67bdea1bfc54cb74af61859711118df1b2e952343f75d
|
| 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:7dd282a9e7febe9e0538e657de7810d81ab6774f47b685ddf5d17531be7ebf1e
|
| 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:19f5fb110df95bd29e14239fc7f49f514710b47a9c0d2d8527a4006385d3a507
|
| 3 |
+
size 6175003248
|