Instructions to use DataPilot/ArrowPro-7B-Nyan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DataPilot/ArrowPro-7B-Nyan with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DataPilot/ArrowPro-7B-Nyan")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DataPilot/ArrowPro-7B-Nyan") model = AutoModelForCausalLM.from_pretrained("DataPilot/ArrowPro-7B-Nyan") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DataPilot/ArrowPro-7B-Nyan with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DataPilot/ArrowPro-7B-Nyan" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DataPilot/ArrowPro-7B-Nyan", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DataPilot/ArrowPro-7B-Nyan
- SGLang
How to use DataPilot/ArrowPro-7B-Nyan 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 "DataPilot/ArrowPro-7B-Nyan" \ --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": "DataPilot/ArrowPro-7B-Nyan", "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 "DataPilot/ArrowPro-7B-Nyan" \ --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": "DataPilot/ArrowPro-7B-Nyan", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DataPilot/ArrowPro-7B-Nyan with Docker Model Runner:
docker model run hf.co/DataPilot/ArrowPro-7B-Nyan
moemoe
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ license: apache-2.0
|
|
| 6 |
|
| 7 |
## 概要
|
| 8 |
|
| 9 |
-
当モデルはMistral系のArrowPro-7B-KUJIRAをもとに[databricks-dolly-15k-Nyan-ja](https://huggingface.co/datasets/DataPilot/databricks-dolly-15k-Nyan-ja)を用いて
|
| 10 |
|
| 11 |
## How to use
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
## 概要
|
| 8 |
|
| 9 |
+
当モデルはMistral系のArrowPro-7B-KUJIRAをもとに[databricks-dolly-15k-Nyan-ja](https://huggingface.co/datasets/DataPilot/databricks-dolly-15k-Nyan-ja)を用いて語尾を「にゃん!」にするファインチューニングを実施したモデルとなります。
|
| 10 |
|
| 11 |
## How to use
|
| 12 |
|