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-step020 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-step020 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-step020") 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-step020") model = AutoModelForCausalLM.from_pretrained("chanyoungkim/strata-qwen2.5-1.5b-alfworld-step020", 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-step020 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-step020" # 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-step020", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step020
- SGLang
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step020 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-step020" \ --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-step020", "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-step020" \ --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-step020", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use chanyoungkim/strata-qwen2.5-1.5b-alfworld-step020 with Docker Model Runner:
docker model run hf.co/chanyoungkim/strata-qwen2.5-1.5b-alfworld-step020
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:75b4794f3ded16f6fcd801e76c3567909fa8fc9dc9b962d4f19674d2aa834ab1
|
| 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:a101c6520b0b41a1cdeb8f712572cbb46db443c59b5a3be7d896d7038b64cb7a
|
| 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:482cd3c681279aa20fa8b758a4939bb91a8ed95f3b81a82fa07812c1abadcc2c
|
| 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:ff1bf7e181e77bbdc25efcbd00425adae82d3f9c26ff9db929cd421a50a2b9c3
|
| 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:f03722c0c8cd4fd9545c814c8df9dd5b2e564a56493c8940494d2afcd1d659aa
|
| 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:900cbd70c3b3db473b04f606bf04446008f13cd7c27d95bfe862d63c850672dd
|
| 3 |
+
size 6175003248
|