Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use gjonesQ02/WO_CausalModel_2x with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gjonesQ02/WO_CausalModel_2x with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gjonesQ02/WO_CausalModel_2x")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gjonesQ02/WO_CausalModel_2x") model = AutoModelForCausalLM.from_pretrained("gjonesQ02/WO_CausalModel_2x", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gjonesQ02/WO_CausalModel_2x with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gjonesQ02/WO_CausalModel_2x" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gjonesQ02/WO_CausalModel_2x", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gjonesQ02/WO_CausalModel_2x
- SGLang
How to use gjonesQ02/WO_CausalModel_2x 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 "gjonesQ02/WO_CausalModel_2x" \ --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": "gjonesQ02/WO_CausalModel_2x", "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 "gjonesQ02/WO_CausalModel_2x" \ --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": "gjonesQ02/WO_CausalModel_2x", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gjonesQ02/WO_CausalModel_2x with Docker Model Runner:
docker model run hf.co/gjonesQ02/WO_CausalModel_2x
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 [distilgpt2](https://huggingface.co/distilgpt2) on the generator dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
@@ -48,12 +48,12 @@ The following hyperparameters were used during training:
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| No log | 1.0 | 151 | 0.
|
| 52 |
-
| No log | 2.0 | 302 | 0.
|
| 53 |
-
| No log | 3.0 | 453 | 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilgpt2](https://huggingface.co/distilgpt2) on the generator dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.6035
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
+
| No log | 1.0 | 151 | 0.6217 |
|
| 52 |
+
| No log | 2.0 | 302 | 0.6133 |
|
| 53 |
+
| No log | 3.0 | 453 | 0.6087 |
|
| 54 |
+
| 0.6243 | 4.0 | 604 | 0.6079 |
|
| 55 |
+
| 0.6243 | 5.0 | 755 | 0.6049 |
|
| 56 |
+
| 0.6243 | 6.0 | 906 | 0.6035 |
|
| 57 |
|
| 58 |
|
| 59 |
### 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:2407a5a625fb0b365a19b5118dfdfde72f6b4e5579bf5f93b0f813ebbeb3dd6f
|
| 3 |
size 327657928
|
runs/Feb19_20-32-50_90aa433f6673/events.out.tfevents.1708374770.90aa433f6673.2967.2
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:75bf1a360eb4afcf16d9c72f8d8d33d6407d82d4dd149bf2fa64e83b10457d92
|
| 3 |
+
size 6747
|