Instructions to use deepparag/DumBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepparag/DumBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deepparag/DumBot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("deepparag/DumBot") model = AutoModelForCausalLM.from_pretrained("deepparag/DumBot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deepparag/DumBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepparag/DumBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepparag/DumBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deepparag/DumBot
- SGLang
How to use deepparag/DumBot 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 "deepparag/DumBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepparag/DumBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "deepparag/DumBot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepparag/DumBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use deepparag/DumBot with Docker Model Runner:
docker model run hf.co/deepparag/DumBot
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,8 @@ license: mit
|
|
| 7 |
An generative AI made using [microsoft/DialoGPT-small](https://huggingface.co/microsoft/DialoGPT-small).
|
| 8 |
Trained on:-
|
| 9 |
https://www.kaggle.com/Cornell-University/movie-dialog-corpus
|
| 10 |
-
|
|
|
|
| 11 |
Example:-
|
| 12 |
```python
|
| 13 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
|
@@ -25,7 +26,7 @@ for step in range(4):
|
|
| 25 |
chat_history_ids = model.generate(
|
| 26 |
bot_input_ids, max_length=200,
|
| 27 |
pad_token_id=tokenizer.eos_token_id,
|
| 28 |
-
no_repeat_ngram_size=
|
| 29 |
do_sample=True,
|
| 30 |
top_k=100,
|
| 31 |
top_p=0.7,
|
|
|
|
| 7 |
An generative AI made using [microsoft/DialoGPT-small](https://huggingface.co/microsoft/DialoGPT-small).
|
| 8 |
Trained on:-
|
| 9 |
https://www.kaggle.com/Cornell-University/movie-dialog-corpus
|
| 10 |
+
https://www.kaggle.com/jef1056/discord-data
|
| 11 |
+
|
| 12 |
Example:-
|
| 13 |
```python
|
| 14 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
|
|
|
| 26 |
chat_history_ids = model.generate(
|
| 27 |
bot_input_ids, max_length=200,
|
| 28 |
pad_token_id=tokenizer.eos_token_id,
|
| 29 |
+
no_repeat_ngram_size=4,
|
| 30 |
do_sample=True,
|
| 31 |
top_k=100,
|
| 32 |
top_p=0.7,
|