totally-not-an-llm/EverythingLM-data-V3
Viewer • Updated • 1.07k • 74 • 32
How to use harborwater/open-llama-3b-everythingLM-2048 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="harborwater/open-llama-3b-everythingLM-2048") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("harborwater/open-llama-3b-everythingLM-2048")
model = AutoModelForCausalLM.from_pretrained("harborwater/open-llama-3b-everythingLM-2048", device_map="auto")How to use harborwater/open-llama-3b-everythingLM-2048 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "harborwater/open-llama-3b-everythingLM-2048"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "harborwater/open-llama-3b-everythingLM-2048",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/harborwater/open-llama-3b-everythingLM-2048
How to use harborwater/open-llama-3b-everythingLM-2048 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "harborwater/open-llama-3b-everythingLM-2048" \
--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": "harborwater/open-llama-3b-everythingLM-2048",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "harborwater/open-llama-3b-everythingLM-2048" \
--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": "harborwater/open-llama-3b-everythingLM-2048",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use harborwater/open-llama-3b-everythingLM-2048 with Docker Model Runner:
docker model run hf.co/harborwater/open-llama-3b-everythingLM-2048
Trained on 2 epochs on the EverythingLM-data-V3 dataset.
This model uses the alpaca prompt format:
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Instruction
### Input:
Input
### Response:
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 40.62 |
| AI2 Reasoning Challenge (25-Shot) | 42.75 |
| HellaSwag (10-Shot) | 71.72 |
| MMLU (5-Shot) | 27.16 |
| TruthfulQA (0-shot) | 34.26 |
| Winogrande (5-shot) | 66.30 |
| GSM8k (5-shot) | 1.52 |