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") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
GOAT-7B-Community model
GOAT-7B-Community model is supervised finetuned (SFT) version of LLaMA 2 developed by GOAT.AI lab on user-shared conversations from GoatChat app.
Model description
- Base Architecture: LLaMA 2 7B flavour
- Dataset size: 72K multi-turn dialogues
- License: llama2
- Context window length: 4096 tokens
Learn more
- Blog: https://www.blog.goat.ai/goat-7b-community-tops-among-7b-models/
- Paper: https://arxiv.org/abs/2308.13449
- Demo: https://3f3fb57083197123c8.gradio.live/
Uses
The main purpose of GOAT-7B-Community is to facilitate research on large language models and chatbots. It is specifically designed for researchers and hobbyists working in the fields of natural language processing, machine learning, and artificial intelligence.
Usage
Usage can be either self-hosted via transformers or used with Spaces
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "GOAT-AI/GOAT-7B-Community"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16
)
Training dataset
Training dataset was collected from users conversations with GoatChat app and OpenAssistant. We will not release the dataset.
Evaluation
GOAT-7B-Community model is evaluated against common metrics for evaluating language models, including MMLU and BigBench Hard. We still continue to evaluate all our models and will share details soon.
- MMLU: 49.31
- BBH: 35.7
License
GOAT-7B-Community model is based on Meta's LLaMA-2-7b-hf, and using own datasets.
GOAT-7B-Community model weights are available under LLAMA-2 license. Note that the GOAT-7B-Community model weights require access to the LLaMA-2 model weighs. The GOAT-7B-Community model is based on LLaMA-2 and should be used according to the LLaMA-2 license.
Risks and Biases
GOAT-7B-Community model can produce factually incorrect output and should not be relied on to deliver factually accurate information. The model was trained on various private and public datasets. Therefore, the GOAT-7B-Community model could possibly generate wrong, biased, or otherwise offensive outputs.
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 42.74 |
| ARC (25-shot) | 48.81 |
| HellaSwag (10-shot) | 74.63 |
| MMLU (5-shot) | 49.58 |
| TruthfulQA (0-shot) | 42.48 |
| Winogrande (5-shot) | 72.3 |
| GSM8K (5-shot) | 4.47 |
| DROP (3-shot) | 6.91 |
- Downloads last month
- 1,028
