Instructions to use Bashitha25/MotivateDHR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bashitha25/MotivateDHR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bashitha25/MotivateDHR")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Bashitha25/MotivateDHR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Bashitha25/MotivateDHR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bashitha25/MotivateDHR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bashitha25/MotivateDHR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Bashitha25/MotivateDHR
- SGLang
How to use Bashitha25/MotivateDHR 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 "Bashitha25/MotivateDHR" \ --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": "Bashitha25/MotivateDHR", "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 "Bashitha25/MotivateDHR" \ --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": "Bashitha25/MotivateDHR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Bashitha25/MotivateDHR with Docker Model Runner:
docker model run hf.co/Bashitha25/MotivateDHR
Commit History
-
Update README.md
Verified signature# MotivateDHR **MotivateDHR** is a cutting-edge motivational bot designed to deliver uplifting and inspiring quotes to users. Its purpose is to provide daily doses of positivity, encouragement, and motivational content that can be integrated into various applications. ## Model Overview - **Purpose**: To inspire and uplift individuals by providing motivational and inspirational quotes. - **Key Features**: - **Daily Motivational Quotes**: Offers a new quote every day to boost user morale. - **Customizable Themes**: Adjust the type of motivational content based on user preferences or themes. - **Easy Integration**: Simple to integrate into your applications using the Hugging Face API or locally with the `transformers` library. ## Usage To use **MotivateDHR**, you can either access it through the Hugging Face API or load it locally in your application. ### API Usage Here’s an example of how to use the model through the Hugging Face API: ```python from transformers import pipe…87a1c2e -
initial commit
Verified signature596b37e