Instructions to use moyix/dolly-replication with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moyix/dolly-replication with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="moyix/dolly-replication")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("moyix/dolly-replication") model = AutoModelForCausalLM.from_pretrained("moyix/dolly-replication") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use moyix/dolly-replication with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "moyix/dolly-replication" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moyix/dolly-replication", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/moyix/dolly-replication
- SGLang
How to use moyix/dolly-replication 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 "moyix/dolly-replication" \ --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": "moyix/dolly-replication", "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 "moyix/dolly-replication" \ --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": "moyix/dolly-replication", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use moyix/dolly-replication with Docker Model Runner:
docker model run hf.co/moyix/dolly-replication
Barebones model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dolly Replication
|
| 2 |
+
|
| 3 |
+
This is a replication of the ["dolly" model from Databricks](https://www.databricks.com/blog/2023/03/24/hello-dolly-democratizing-magic-chatgpt-open-models.html), which is GPT-J-6B fine-tuned on the alpaca instruction following dataset. It was trained in 6 hours on a high-end workstation (2xA6000 GPUs).
|
| 4 |
+
|
| 5 |
+
## Licensing
|
| 6 |
+
|
| 7 |
+
Because the alpaca dataset was created from text generated by OpenAI's text-davinci-003 model, it is not clear whether this model can be used commercially; OpenAI's ToS does not allow one to "use output from the Services to develop models that compete with OpenAI".
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
datasets:
|
| 11 |
+
- tatsu-lab/alpaca
|
| 12 |
+
---
|