Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use twosegfaults/results with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use twosegfaults/results with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="twosegfaults/results")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("twosegfaults/results") model = AutoModelForCausalLM.from_pretrained("twosegfaults/results") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use twosegfaults/results with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "twosegfaults/results" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "twosegfaults/results", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/twosegfaults/results
- SGLang
How to use twosegfaults/results 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 "twosegfaults/results" \ --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": "twosegfaults/results", "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 "twosegfaults/results" \ --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": "twosegfaults/results", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use twosegfaults/results with Docker Model Runner:
docker model run hf.co/twosegfaults/results
twosegfaults/GPT2.4
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ The following hyperparameters were used during training:
|
|
| 37 |
- seed: 42
|
| 38 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 39 |
- lr_scheduler_type: linear
|
| 40 |
-
- num_epochs:
|
| 41 |
|
| 42 |
### Training results
|
| 43 |
|
|
|
|
| 37 |
- seed: 42
|
| 38 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 39 |
- lr_scheduler_type: linear
|
| 40 |
+
- num_epochs: 20
|
| 41 |
|
| 42 |
### Training results
|
| 43 |
|
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:005cfd1a4e592bc2e879b84f687a16957b6dcb3aa757fe02d7efa897068c2e30
|
| 3 |
size 497774208
|
runs/Jul15_17-26-34_891b75b9e637/events.out.tfevents.1721064396.891b75b9e637.180.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fd4e025cce1a4e4ed4c8ee38b09367107337db0a90dcfe2d906aa40df17b8e4
|
| 3 |
+
size 6038
|
runs/Jul15_17-51-16_891b75b9e637/events.out.tfevents.1721065877.891b75b9e637.180.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f307f2b09a6297c3415210f4a3463302a75e48a6d653f92ff6577d2409b91793
|
| 3 |
+
size 7093
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6bbe45eb9287c743f06fa38768c4d16f59c1ea29e49fff6ba7b67866d81e7035
|
| 3 |
size 5112
|