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 Settings
- 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
config.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
| 33 |
"max_length": 50
|
| 34 |
}
|
| 35 |
},
|
| 36 |
-
"transformers_version": "4.57.
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 50260
|
| 39 |
}
|
|
|
|
| 33 |
"max_length": 50
|
| 34 |
}
|
| 35 |
},
|
| 36 |
+
"transformers_version": "4.57.2",
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 50260
|
| 39 |
}
|
generation_config.json
CHANGED
|
@@ -5,5 +5,5 @@
|
|
| 5 |
50256
|
| 6 |
],
|
| 7 |
"pad_token_id": 50256,
|
| 8 |
-
"transformers_version": "4.57.
|
| 9 |
}
|
|
|
|
| 5 |
50256
|
| 6 |
],
|
| 7 |
"pad_token_id": 50256,
|
| 8 |
+
"transformers_version": "4.57.2"
|
| 9 |
}
|
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:09a363ef5c94160bbf3b7a9c6abccce9cf3dea26ff283b98f2738b293b8cd719
|
| 3 |
size 497783424
|
runs/Nov30_02-38-10_2183ebfc782d/events.out.tfevents.1764470298.2183ebfc782d.294.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cd086e9bacc0c12d29ff45c65144de637dea5dca59a663934651a3a70cd1a88
|
| 3 |
+
size 5684
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe7f211a02d8525ce8fce82de437fb4da04bac7a7047e3f619ceaf737fc95146
|
| 3 |
+
size 6033
|