Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use ninagroot/GPT2-705M-finaltest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/GPT2-705M-finaltest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/GPT2-705M-finaltest")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/GPT2-705M-finaltest") model = AutoModelForCausalLM.from_pretrained("ninagroot/GPT2-705M-finaltest") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ninagroot/GPT2-705M-finaltest with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/GPT2-705M-finaltest" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ninagroot/GPT2-705M-finaltest", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/GPT2-705M-finaltest
- SGLang
How to use ninagroot/GPT2-705M-finaltest 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 "ninagroot/GPT2-705M-finaltest" \ --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": "ninagroot/GPT2-705M-finaltest", "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 "ninagroot/GPT2-705M-finaltest" \ --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": "ninagroot/GPT2-705M-finaltest", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/GPT2-705M-finaltest with Docker Model Runner:
docker model run hf.co/ninagroot/GPT2-705M-finaltest
ninagroot/GPT2-705M
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 15 |
It achieves the following results on the evaluation set:
|
| 16 |
-
- Loss: 3.
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
@@ -48,21 +48,21 @@ The following hyperparameters were used during training:
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| 6.
|
| 52 |
-
| 6.
|
| 53 |
-
| 6.
|
| 54 |
-
| 4.
|
| 55 |
-
| 4.
|
| 56 |
-
| 4.
|
| 57 |
-
| 4.
|
| 58 |
-
|
|
| 59 |
-
| 4.
|
| 60 |
-
|
|
| 61 |
-
| 3.
|
| 62 |
-
| 3.
|
| 63 |
-
| 3.
|
| 64 |
-
| 3.
|
| 65 |
-
|
|
| 66 |
|
| 67 |
|
| 68 |
### Framework versions
|
|
|
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 15 |
It achieves the following results on the evaluation set:
|
| 16 |
+
- Loss: 3.5805
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
+
| 6.872 | 1.0 | 3 | 6.7840 |
|
| 52 |
+
| 6.4623 | 2.0 | 6 | 6.5344 |
|
| 53 |
+
| 6.1624 | 3.0 | 9 | 6.1049 |
|
| 54 |
+
| 4.8878 | 4.0 | 12 | 5.8237 |
|
| 55 |
+
| 4.908 | 5.0 | 15 | 5.1010 |
|
| 56 |
+
| 4.6666 | 6.0 | 18 | 5.0636 |
|
| 57 |
+
| 4.4854 | 7.0 | 21 | 4.7967 |
|
| 58 |
+
| 5.0298 | 8.0 | 24 | 5.1645 |
|
| 59 |
+
| 4.4216 | 9.0 | 27 | 4.4990 |
|
| 60 |
+
| 4.1914 | 10.0 | 30 | 4.3240 |
|
| 61 |
+
| 3.909 | 11.0 | 33 | 4.1773 |
|
| 62 |
+
| 3.8537 | 12.0 | 36 | 3.9425 |
|
| 63 |
+
| 3.4798 | 13.0 | 39 | 3.8305 |
|
| 64 |
+
| 3.487 | 14.0 | 42 | 3.8480 |
|
| 65 |
+
| 3.1947 | 15.0 | 45 | 3.5805 |
|
| 66 |
|
| 67 |
|
| 68 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2748401440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04106f7902e74cdbfd08920ac6fb490883909b747a961ffd285ca1ad3811ce6a
|
| 3 |
size 2748401440
|
runs/Apr30_09-29-06_gcn43.local.snellius.surf.nl/events.out.tfevents.1714462155.gcn43.local.snellius.surf.nl.1323828.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1393977e6d7cebd99f0f2d8e31f6a406c604d3c19bf0d6e4c2b0420cea1279a3
|
| 3 |
+
size 18331
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4984
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:003e0338c870166b9bddaee48b9f939fcd613c657ea0ddad0ccb2ccb5b11a6d2
|
| 3 |
size 4984
|