Instructions to use GOAT-AI/GOAT-7B-Community with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GOAT-AI/GOAT-7B-Community with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GOAT-AI/GOAT-7B-Community")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GOAT-AI/GOAT-7B-Community") model = AutoModelForCausalLM.from_pretrained("GOAT-AI/GOAT-7B-Community") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GOAT-AI/GOAT-7B-Community with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GOAT-AI/GOAT-7B-Community" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GOAT-AI/GOAT-7B-Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GOAT-AI/GOAT-7B-Community
- SGLang
How to use GOAT-AI/GOAT-7B-Community 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 "GOAT-AI/GOAT-7B-Community" \ --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": "GOAT-AI/GOAT-7B-Community", "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 "GOAT-AI/GOAT-7B-Community" \ --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": "GOAT-AI/GOAT-7B-Community", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GOAT-AI/GOAT-7B-Community with Docker Model Runner:
docker model run hf.co/GOAT-AI/GOAT-7B-Community
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ GOAT-7B-Community model is supervised finetuned (SFT) version of LLaMA 2 develop
|
|
| 24 |
### Learn more
|
| 25 |
|
| 26 |
- **Blog:** https://www.blog.goat.ai/goat-7b-community-tops-among-7b-models/
|
| 27 |
-
- **Paper:**
|
| 28 |
- **Demo:** https://3f3fb57083197123c8.gradio.live/
|
| 29 |
|
| 30 |
## Uses
|
|
|
|
| 24 |
### Learn more
|
| 25 |
|
| 26 |
- **Blog:** https://www.blog.goat.ai/goat-7b-community-tops-among-7b-models/
|
| 27 |
+
- **Paper:** https://arxiv.org/abs/2308.13449
|
| 28 |
- **Demo:** https://3f3fb57083197123c8.gradio.live/
|
| 29 |
|
| 30 |
## Uses
|