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
Librarian Bot: Add base_model information to model
#2
by librarian-bot - opened
README.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
- opt
|
| 6 |
-
model-index:
|
| 7 |
-
- name: gptQuotes
|
| 8 |
-
results: []
|
| 9 |
datasets:
|
| 10 |
- Abirate/english_quotes
|
| 11 |
-
language:
|
| 12 |
-
- en
|
| 13 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: mit
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
- opt
|
|
|
|
|
|
|
|
|
|
| 8 |
datasets:
|
| 9 |
- Abirate/english_quotes
|
|
|
|
|
|
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
+
base_model: facebook/opt-350m
|
| 12 |
+
model-index:
|
| 13 |
+
- name: gptQuotes
|
| 14 |
+
results: []
|
| 15 |
---
|
| 16 |
|
| 17 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|