Text Generation
Transformers
PyTorch
Safetensors
English
t5
text2text-generation
text-generation-inference
Instructions to use Ateeqq/keywords-title-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ateeqq/keywords-title-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ateeqq/keywords-title-generator")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Ateeqq/keywords-title-generator") model = AutoModelForSeq2SeqLM.from_pretrained("Ateeqq/keywords-title-generator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ateeqq/keywords-title-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ateeqq/keywords-title-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ateeqq/keywords-title-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ateeqq/keywords-title-generator
- SGLang
How to use Ateeqq/keywords-title-generator 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 "Ateeqq/keywords-title-generator" \ --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": "Ateeqq/keywords-title-generator", "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 "Ateeqq/keywords-title-generator" \ --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": "Ateeqq/keywords-title-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ateeqq/keywords-title-generator with Docker Model Runner:
docker model run hf.co/Ateeqq/keywords-title-generator
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
inference:
|
| 4 |
parameters:
|
| 5 |
temperature: 0.7
|
|
@@ -13,15 +13,12 @@ pipeline_tag: text2text-generation
|
|
| 13 |
tags:
|
| 14 |
- text-generation-inference
|
| 15 |
widget:
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
- text: >-
|
| 23 |
-
generate title: History, Computer, Software
|
| 24 |
-
example_title: Example 3
|
| 25 |
---
|
| 26 |
|
| 27 |
# Generate Title using Keywords
|
|
@@ -75,8 +72,4 @@ generate_title(keywords)
|
|
| 75 |
'Using fine tuning to fine-tune your machine learning model',
|
| 76 |
'Machine Learning: Fine-tuning your model to fit the needs of machine learning',
|
| 77 |
'The Art of Fine-Tuning Your Machine Learning Model']
|
| 78 |
-
```
|
| 79 |
-
|
| 80 |
-
### Disclaimer:
|
| 81 |
-
|
| 82 |
-
It grants a non-exclusive, non-transferable license to use the this model. This means you can't freely share it with others or sell the model itself. However you can use the model for commercial purposes.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
inference:
|
| 4 |
parameters:
|
| 5 |
temperature: 0.7
|
|
|
|
| 13 |
tags:
|
| 14 |
- text-generation-inference
|
| 15 |
widget:
|
| 16 |
+
- text: 'generate title: Importance, Dataset, AI'
|
| 17 |
+
example_title: Example 1
|
| 18 |
+
- text: 'generate title: Amazon, Product, Business'
|
| 19 |
+
example_title: Example 2
|
| 20 |
+
- text: 'generate title: History, Computer, Software'
|
| 21 |
+
example_title: Example 3
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
# Generate Title using Keywords
|
|
|
|
| 72 |
'Using fine tuning to fine-tune your machine learning model',
|
| 73 |
'Machine Learning: Fine-tuning your model to fit the needs of machine learning',
|
| 74 |
'The Art of Fine-Tuning Your Machine Learning Model']
|
| 75 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|