Instructions to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer") model = AutoModelForCausalLM.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer
- SGLang
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer 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 "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer" \ --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": "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer", "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 "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer" \ --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": "Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer with Docker Model Runner:
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer
Commit ·
0403edd
1
Parent(s): 4aef454
Training in progress epoch 11
Browse files
README.md
CHANGED
|
@@ -14,9 +14,9 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
-
- Train Loss: 1.
|
| 18 |
-
- Validation Loss: 1.
|
| 19 |
-
- Epoch:
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -53,6 +53,7 @@ The following hyperparameters were used during training:
|
|
| 53 |
| 1.7883 | 1.8823 | 8 |
|
| 54 |
| 1.7153 | 1.8448 | 9 |
|
| 55 |
| 1.6517 | 1.8113 | 10 |
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
|
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 1.5953
|
| 18 |
+
- Validation Loss: 1.7864
|
| 19 |
+
- Epoch: 11
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 53 |
| 1.7883 | 1.8823 | 8 |
|
| 54 |
| 1.7153 | 1.8448 | 9 |
|
| 55 |
| 1.6517 | 1.8113 | 10 |
|
| 56 |
+
| 1.5953 | 1.7864 | 11 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
checkpoint/extra_data.pickle
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 995530137
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ed963d1538062edb4b3d3128ef30ce9baf4d2db08f10a3c90dce4397f6167b1
|
| 3 |
size 995530137
|
checkpoint/weights.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497935440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e68ff8f009c25565aa89b700809d78886b7f6cbbf2bcad25ec0231dbd52945b3
|
| 3 |
size 497935440
|
logs/train/events.out.tfevents.1674688428.ip-10-39-226-87.afrd.expertcity.com.7702.0.v2
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:2aa7c5a3b2578ca3894808f1497d1d3dd949d14bbd6ef60ce8b109c40068020b
|
| 3 |
+
size 2619964
|
logs/validation/events.out.tfevents.1674691275.ip-10-39-226-87.afrd.expertcity.com.7702.1.v2
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:797826b3443e16faaf2b64f5530c8865a4e2a887153356f2c3c7a716aaf5f037
|
| 3 |
+
size 1852
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497935440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e68ff8f009c25565aa89b700809d78886b7f6cbbf2bcad25ec0231dbd52945b3
|
| 3 |
size 497935440
|