Text Generation
Transformers
Safetensors
gpt2
Generated from Trainer
sft
trl
text-generation-inference
Instructions to use JocelyneSmith/HW2-supervised with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JocelyneSmith/HW2-supervised with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JocelyneSmith/HW2-supervised")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JocelyneSmith/HW2-supervised") model = AutoModelForCausalLM.from_pretrained("JocelyneSmith/HW2-supervised") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JocelyneSmith/HW2-supervised with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JocelyneSmith/HW2-supervised" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JocelyneSmith/HW2-supervised", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JocelyneSmith/HW2-supervised
- SGLang
How to use JocelyneSmith/HW2-supervised 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 "JocelyneSmith/HW2-supervised" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JocelyneSmith/HW2-supervised", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "JocelyneSmith/HW2-supervised" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JocelyneSmith/HW2-supervised", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JocelyneSmith/HW2-supervised with Docker Model Runner:
docker model run hf.co/JocelyneSmith/HW2-supervised
Training in progress, step 500
Browse files- README.md +3 -3
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -4,8 +4,8 @@ library_name: transformers
|
|
| 4 |
model_name: HW2-supervised
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
-
- trl
|
| 8 |
- sft
|
|
|
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
|
@@ -35,10 +35,10 @@ This model was trained with SFT.
|
|
| 35 |
### Framework versions
|
| 36 |
|
| 37 |
- TRL: 0.19.0
|
| 38 |
-
- Transformers: 4.
|
| 39 |
- Pytorch: 2.7.1+cu128
|
| 40 |
- Datasets: 3.6.0
|
| 41 |
-
- Tokenizers: 0.21.
|
| 42 |
|
| 43 |
## Citations
|
| 44 |
|
|
|
|
| 4 |
model_name: HW2-supervised
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- sft
|
| 8 |
+
- trl
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
|
|
|
| 35 |
### Framework versions
|
| 36 |
|
| 37 |
- TRL: 0.19.0
|
| 38 |
+
- Transformers: 4.53.0
|
| 39 |
- Pytorch: 2.7.1+cu128
|
| 40 |
- Datasets: 3.6.0
|
| 41 |
+
- Tokenizers: 0.21.2
|
| 42 |
|
| 43 |
## Citations
|
| 44 |
|
config.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
| 33 |
}
|
| 34 |
},
|
| 35 |
"torch_dtype": "float32",
|
| 36 |
-
"transformers_version": "4.
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 50257
|
| 39 |
}
|
|
|
|
| 33 |
}
|
| 34 |
},
|
| 35 |
"torch_dtype": "float32",
|
| 36 |
+
"transformers_version": "4.53.0",
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 50257
|
| 39 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497774208
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e93af1f545d91af6a507621c6f1065602355394d670b5fdf3e9f3042f36f455
|
| 3 |
size 497774208
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6097
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a766942141e2605bfd0b83641074c39a112b1ffa65232dac75887c9bd712bec3
|
| 3 |
size 6097
|