Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Hiranmai49/CFDistilGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hiranmai49/CFDistilGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hiranmai49/CFDistilGPT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hiranmai49/CFDistilGPT") model = AutoModelForCausalLM.from_pretrained("Hiranmai49/CFDistilGPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hiranmai49/CFDistilGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hiranmai49/CFDistilGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hiranmai49/CFDistilGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Hiranmai49/CFDistilGPT
- SGLang
How to use Hiranmai49/CFDistilGPT 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 "Hiranmai49/CFDistilGPT" \ --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": "Hiranmai49/CFDistilGPT", "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 "Hiranmai49/CFDistilGPT" \ --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": "Hiranmai49/CFDistilGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Hiranmai49/CFDistilGPT with Docker Model Runner:
docker model run hf.co/Hiranmai49/CFDistilGPT
End of training
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [distilgpt2](https://huggingface.co/distilgpt2) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss:
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -41,15 +41,22 @@ The following hyperparameters were used during training:
|
|
| 41 |
- seed: 42
|
| 42 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
-
- num_epochs:
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
-
| No log | 1.0 | 140 | 3.
|
| 51 |
-
| No log | 2.0 | 280 | 3.
|
| 52 |
-
| No log | 3.0 | 420 | 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
### Framework versions
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [distilgpt2](https://huggingface.co/distilgpt2) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 2.9980
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 41 |
- seed: 42
|
| 42 |
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
+
- num_epochs: 10
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
+
| No log | 1.0 | 140 | 3.2420 |
|
| 51 |
+
| No log | 2.0 | 280 | 3.1426 |
|
| 52 |
+
| No log | 3.0 | 420 | 3.0921 |
|
| 53 |
+
| 3.2444 | 4.0 | 560 | 3.0593 |
|
| 54 |
+
| 3.2444 | 5.0 | 700 | 3.0417 |
|
| 55 |
+
| 3.2444 | 6.0 | 840 | 3.0215 |
|
| 56 |
+
| 3.2444 | 7.0 | 980 | 3.0117 |
|
| 57 |
+
| 2.9628 | 8.0 | 1120 | 3.0048 |
|
| 58 |
+
| 2.9628 | 9.0 | 1260 | 3.0008 |
|
| 59 |
+
| 2.9628 | 10.0 | 1400 | 2.9980 |
|
| 60 |
|
| 61 |
|
| 62 |
### Framework versions
|
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:32b3ec8f54edd8e78bb84fa33faf365514d89ae12028972e9e356d0882955bfb
|
| 3 |
size 327657928
|
runs/Dec10_22-17-17_ltrcgpu2/events.out.tfevents.1733849237.ltrcgpu2.3487582.0
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:27babb2a019a9e3ef5cfc82623e7118c6893d9f5217393ad168c6093acf400eb
|
| 3 |
+
size 8886
|
runs/Dec10_22-17-17_ltrcgpu2/events.out.tfevents.1733849465.ltrcgpu2.3487582.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4047a57e595858d07fecc6695d0246d9439728b43ed5b2c6fb6aca7c99eb4aa
|
| 3 |
+
size 359
|