Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zohaib002/GPT2-Model-Large-Dataset-Psycho")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zohaib002/GPT2-Model-Large-Dataset-Psycho") model = AutoModelForCausalLM.from_pretrained("Zohaib002/GPT2-Model-Large-Dataset-Psycho") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zohaib002/GPT2-Model-Large-Dataset-Psycho" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Zohaib002/GPT2-Model-Large-Dataset-Psycho
- SGLang
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho 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 "Zohaib002/GPT2-Model-Large-Dataset-Psycho" \ --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": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "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 "Zohaib002/GPT2-Model-Large-Dataset-Psycho" \ --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": "Zohaib002/GPT2-Model-Large-Dataset-Psycho", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Zohaib002/GPT2-Model-Large-Dataset-Psycho with Docker Model Runner:
docker model run hf.co/Zohaib002/GPT2-Model-Large-Dataset-Psycho
Training in progress, step 500
Browse files
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497783424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bb07179b4c6c52bd6226bcde0e20b211ef9c2b0711a84995d2aa438ea8cf0ab
|
| 3 |
size 497783424
|
runs/Nov30_03-24-23_c4e1eed4bd64/events.out.tfevents.1764473076.c4e1eed4bd64.258.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bf7bcd794fbf5be25de7b244a91987d23f208afdbc6b7a8e9690a3dfed962c3
|
| 3 |
+
size 5474
|
runs/Nov30_03-27-10_c4e1eed4bd64/events.out.tfevents.1764473232.c4e1eed4bd64.258.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3f18ff884ec90fab2ce7e16c9b10c8ff3d49cc5dda7613cee5b60a4dfc879ff
|
| 3 |
+
size 5685
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6033
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ee22ed8c809cbcb09dafc9c832877bd7524dc6a910e06ab8c8e74355079dfbd
|
| 3 |
size 6033
|