databricks/databricks-dolly-15k
Viewer • Updated • 15k • 63.8k • 1.1k
How to use leafspark/wikichat-v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="leafspark/wikichat-v2") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("leafspark/wikichat-v2", device_map="auto")How to use leafspark/wikichat-v2 with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/wikichat-v2:F32 # Run inference directly in the terminal: llama cli -hf leafspark/wikichat-v2:F32
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/wikichat-v2:F32 # Run inference directly in the terminal: llama cli -hf leafspark/wikichat-v2:F32
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf leafspark/wikichat-v2:F32 # Run inference directly in the terminal: ./llama-cli -hf leafspark/wikichat-v2:F32
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf leafspark/wikichat-v2:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf leafspark/wikichat-v2:F32
docker model run hf.co/leafspark/wikichat-v2:F32
How to use leafspark/wikichat-v2 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "leafspark/wikichat-v2"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "leafspark/wikichat-v2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/leafspark/wikichat-v2:F32
How to use leafspark/wikichat-v2 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "leafspark/wikichat-v2" \
--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": "leafspark/wikichat-v2",
"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 "leafspark/wikichat-v2" \
--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": "leafspark/wikichat-v2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use leafspark/wikichat-v2 with Ollama:
ollama run hf.co/leafspark/wikichat-v2:F32
How to use leafspark/wikichat-v2 with Docker Model Runner:
docker model run hf.co/leafspark/wikichat-v2:F32
How to use leafspark/wikichat-v2 with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull leafspark/wikichat-v2:F32
lemonade run user.wikichat-v2-F32
lemonade list
Training in progress model to have conversations.
The GGUFs uploaded are full FP32 precision.
Using OpenOrca GPT-4 data + cosmopedia for some extra data + dolly15k for instruct
Instruction: {system}
Input: {prompt}
Response: {response}
Please structure your prompts in an instruct format for maximum performance.
The model isn't ready yet; this is to test tokenization of OpenOrca and a balance between training speed and model size
User: What is the square root of 4?
Assistant: The square root of 4 is 2.
32-bit