Text Generation
Transformers
TensorBoard
Safetensors
llama
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use ainth89/your_output_dir_zezze with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ainth89/your_output_dir_zezze with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ainth89/your_output_dir_zezze")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ainth89/your_output_dir_zezze") model = AutoModelForMultimodalLM.from_pretrained("ainth89/your_output_dir_zezze") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ainth89/your_output_dir_zezze with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ainth89/your_output_dir_zezze" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ainth89/your_output_dir_zezze", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ainth89/your_output_dir_zezze
- SGLang
How to use ainth89/your_output_dir_zezze 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 "ainth89/your_output_dir_zezze" \ --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": "ainth89/your_output_dir_zezze", "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 "ainth89/your_output_dir_zezze" \ --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": "ainth89/your_output_dir_zezze", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ainth89/your_output_dir_zezze with Docker Model Runner:
docker model run hf.co/ainth89/your_output_dir_zezze
End of training
Browse files- README.md +3 -3
- config.json +1 -1
- model.safetensors +1 -1
- runs/Sep10_15-25-08_5830fb298992/events.out.tfevents.1725981949.5830fb298992.2022.0 +3 -0
- special_tokens_map.json +7 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
-
base_model:
|
| 5 |
tags:
|
| 6 |
- trl
|
| 7 |
- sft
|
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
# your_output_dir_zezze
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -41,7 +41,7 @@ The following hyperparameters were used during training:
|
|
| 41 |
- seed: 42
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
-
- num_epochs:
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: ainth89/your_output_dir_zezze
|
| 5 |
tags:
|
| 6 |
- trl
|
| 7 |
- sft
|
|
|
|
| 16 |
|
| 17 |
# your_output_dir_zezze
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [ainth89/your_output_dir_zezze](https://huggingface.co/ainth89/your_output_dir_zezze) on an unknown dataset.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 41 |
- seed: 42
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
+
- num_epochs: 4
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "ainth89/your_output_dir_zezze",
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4400216536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6235aae1edf94b09ffd0e12c9268d727b9631033b7e5cd599b2cfec21eb6a0fe
|
| 3 |
size 4400216536
|
runs/Sep10_15-25-08_5830fb298992/events.out.tfevents.1725981949.5830fb298992.2022.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6c7566f7cce4b7fe33caf72417140ec8cbfe36f0de565f7f26655eaa98a3f21
|
| 3 |
+
size 5624
|
special_tokens_map.json
CHANGED
|
@@ -13,7 +13,13 @@
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
-
"pad_token":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
"unk_token": {
|
| 18 |
"content": "<unk>",
|
| 19 |
"lstrip": false,
|
|
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
"unk_token": {
|
| 24 |
"content": "<unk>",
|
| 25 |
"lstrip": false,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f0258b6ba0b948f1b5ed2d66947be56033d649025c5ed9244f819380852e5dc
|
| 3 |
size 5432
|