Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use JYL480/Test_DistBERTModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JYL480/Test_DistBERTModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JYL480/Test_DistBERTModel")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JYL480/Test_DistBERTModel") model = AutoModelForCausalLM.from_pretrained("JYL480/Test_DistBERTModel") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use JYL480/Test_DistBERTModel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JYL480/Test_DistBERTModel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JYL480/Test_DistBERTModel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JYL480/Test_DistBERTModel
- SGLang
How to use JYL480/Test_DistBERTModel 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 "JYL480/Test_DistBERTModel" \ --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": "JYL480/Test_DistBERTModel", "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 "JYL480/Test_DistBERTModel" \ --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": "JYL480/Test_DistBERTModel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JYL480/Test_DistBERTModel with Docker Model Runner:
docker model run hf.co/JYL480/Test_DistBERTModel
End of training
Browse files
README.md
CHANGED
|
@@ -17,7 +17,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert/distilgpt2](https://huggingface.co/distilbert/distilgpt2) on the eli5_category dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 3.
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
@@ -46,13 +46,13 @@ The following hyperparameters were used during training:
|
|
| 46 |
|
| 47 |
### Training results
|
| 48 |
|
| 49 |
-
| Training Loss | Epoch | Step
|
| 50 |
-
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| 3.
|
| 52 |
-
| 3.
|
| 53 |
-
| 3.
|
| 54 |
-
| 3.
|
| 55 |
-
| 3.
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert/distilgpt2](https://huggingface.co/distilbert/distilgpt2) on the eli5_category dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 3.7692
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 46 |
|
| 47 |
### Training results
|
| 48 |
|
| 49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
| 51 |
+
| 3.9179 | 1.0 | 2736 | 3.7953 |
|
| 52 |
+
| 3.8435 | 2.0 | 5472 | 3.7801 |
|
| 53 |
+
| 3.7908 | 3.0 | 8208 | 3.7714 |
|
| 54 |
+
| 3.753 | 4.0 | 10944 | 3.7702 |
|
| 55 |
+
| 3.7358 | 5.0 | 13680 | 3.7692 |
|
| 56 |
|
| 57 |
|
| 58 |
### 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:0338cbfaf9fc36d222e76d401fbf5decdf403c1330291ae2a65c7e667a3d1604
|
| 3 |
size 327657928
|
runs/Jul10_10-01-31_58d3d2b17d19/events.out.tfevents.1720605693.58d3d2b17d19.1530.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:842db3d3994d81ab32f63ee1345238eca4a0a5551f00d6ca01fe0d0c6ac9b11f
|
| 3 |
+
size 12565
|
runs/Jul10_10-01-31_58d3d2b17d19/events.out.tfevents.1720609002.58d3d2b17d19.1530.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c872b26bb239dea4ca8cf7d7ccbcfc50b8d9ab72232bbd0cd167809c8a56430c
|
| 3 |
+
size 359
|