Text Generation
Transformers
TensorBoard
Safetensors
English
gpt2
Generated from Trainer
text-generation-inference
Instructions to use ashaduzzaman/gpt2-funetuned-eli5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ashaduzzaman/gpt2-funetuned-eli5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ashaduzzaman/gpt2-funetuned-eli5")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ashaduzzaman/gpt2-funetuned-eli5") model = AutoModelForCausalLM.from_pretrained("ashaduzzaman/gpt2-funetuned-eli5") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ashaduzzaman/gpt2-funetuned-eli5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ashaduzzaman/gpt2-funetuned-eli5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ashaduzzaman/gpt2-funetuned-eli5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ashaduzzaman/gpt2-funetuned-eli5
- SGLang
How to use ashaduzzaman/gpt2-funetuned-eli5 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 "ashaduzzaman/gpt2-funetuned-eli5" \ --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": "ashaduzzaman/gpt2-funetuned-eli5", "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 "ashaduzzaman/gpt2-funetuned-eli5" \ --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": "ashaduzzaman/gpt2-funetuned-eli5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ashaduzzaman/gpt2-funetuned-eli5 with Docker Model Runner:
docker model run hf.co/ashaduzzaman/gpt2-funetuned-eli5
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 327657928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8bff55f08f24b79f38b55076060f62a566e8806ce912dce3fa432eda80533890
|
| 3 |
size 327657928
|
runs/Aug25_14-54-12_0fb544052c32/events.out.tfevents.1724597929.0fb544052c32.4106.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c6b5cfb72d129ae35d06aad100df42ad73e52cab742c438c1e4e6699763937a
|
| 3 |
+
size 354
|
runs/Aug25_15-00-37_0fb544052c32/events.out.tfevents.1724598044.0fb544052c32.4106.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:393c75f8ff77d6f685f7f58ebb0978869f3b9b69321241ccd8e25a6f4cb4a69a
|
| 3 |
+
size 5429
|
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:79c7261271637194692d7f67df72e2b77e39cd971eb54311b9b889847e8cdc48
|
| 3 |
size 5112
|