Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
opt
Generated from Trainer
text-generation-inference
Instructions to use sr5434/gptQuotes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sr5434/gptQuotes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sr5434/gptQuotes")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sr5434/gptQuotes") model = AutoModelForCausalLM.from_pretrained("sr5434/gptQuotes") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use sr5434/gptQuotes with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sr5434/gptQuotes" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sr5434/gptQuotes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sr5434/gptQuotes
- SGLang
How to use sr5434/gptQuotes 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 "sr5434/gptQuotes" \ --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": "sr5434/gptQuotes", "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 "sr5434/gptQuotes" \ --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": "sr5434/gptQuotes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sr5434/gptQuotes with Docker Model Runner:
docker model run hf.co/sr5434/gptQuotes
Training in progress, step 800
Browse files
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
checkpoint-*/
|
config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "facebook/opt-350m",
|
| 3 |
+
"_remove_final_layer_norm": false,
|
| 4 |
+
"activation_dropout": 0.0,
|
| 5 |
+
"activation_function": "relu",
|
| 6 |
+
"architectures": [
|
| 7 |
+
"OPTForCausalLM"
|
| 8 |
+
],
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"bos_token_id": 2,
|
| 11 |
+
"do_layer_norm_before": false,
|
| 12 |
+
"dropout": 0.1,
|
| 13 |
+
"enable_bias": true,
|
| 14 |
+
"eos_token_id": 2,
|
| 15 |
+
"ffn_dim": 4096,
|
| 16 |
+
"hidden_size": 1024,
|
| 17 |
+
"init_std": 0.02,
|
| 18 |
+
"layer_norm_elementwise_affine": true,
|
| 19 |
+
"layerdrop": 0.0,
|
| 20 |
+
"max_position_embeddings": 2048,
|
| 21 |
+
"model_type": "opt",
|
| 22 |
+
"num_attention_heads": 16,
|
| 23 |
+
"num_hidden_layers": 24,
|
| 24 |
+
"pad_token_id": 1,
|
| 25 |
+
"prefix": "</s>",
|
| 26 |
+
"torch_dtype": "float32",
|
| 27 |
+
"transformers_version": "4.25.1",
|
| 28 |
+
"use_cache": true,
|
| 29 |
+
"vocab_size": 50272,
|
| 30 |
+
"word_embed_proj_dim": 512
|
| 31 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20b2a193000cfcee7b02d84efc543bc61b61794be36f42ffc0d87ad990f8aa69
|
| 3 |
+
size 1324917277
|
runs/Jan17_22-56-31_b17688a2884a/1673996211.1222813/events.out.tfevents.1673996211.b17688a2884a.382.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c85a4d9fbbfab6bdd5ed7bb0af714cc341665f3c6a8a87a877f7b016901cb0cc
|
| 3 |
+
size 5482
|
runs/Jan17_22-56-31_b17688a2884a/events.out.tfevents.1673996211.b17688a2884a.382.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a19cad5889445197b0f0fb6a326a1da8d8ba9f69b51f060aee4ee10c1fa4f2c
|
| 3 |
+
size 3966
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00b374f1f5b8e56ba7bef912b5413599e9367fa86f50fa4775661b77d8e39aa3
|
| 3 |
+
size 3387
|