Instructions to use sky-mighty/bu-30b-a3b-preview-quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sky-mighty/bu-30b-a3b-preview-quantized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="sky-mighty/bu-30b-a3b-preview-quantized") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sky-mighty/bu-30b-a3b-preview-quantized", dtype="auto") - llama-cpp-python
How to use sky-mighty/bu-30b-a3b-preview-quantized with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sky-mighty/bu-30b-a3b-preview-quantized", filename="bu-30B-a3B-preview-F16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use sky-mighty/bu-30b-a3b-preview-quantized with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M # Run inference directly in the terminal: llama-cli -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M # Run inference directly in the terminal: llama-cli -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Use pre-built binary
# 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 sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Build from source code
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 sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Use Docker
docker model run hf.co/sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use sky-mighty/bu-30b-a3b-preview-quantized with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sky-mighty/bu-30b-a3b-preview-quantized" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sky-mighty/bu-30b-a3b-preview-quantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
- SGLang
How to use sky-mighty/bu-30b-a3b-preview-quantized 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 "sky-mighty/bu-30b-a3b-preview-quantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sky-mighty/bu-30b-a3b-preview-quantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "sky-mighty/bu-30b-a3b-preview-quantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sky-mighty/bu-30b-a3b-preview-quantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use sky-mighty/bu-30b-a3b-preview-quantized with Ollama:
ollama run hf.co/sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
- Unsloth Studio new
How to use sky-mighty/bu-30b-a3b-preview-quantized with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sky-mighty/bu-30b-a3b-preview-quantized to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sky-mighty/bu-30b-a3b-preview-quantized to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sky-mighty/bu-30b-a3b-preview-quantized to start chatting
- Pi new
How to use sky-mighty/bu-30b-a3b-preview-quantized with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sky-mighty/bu-30b-a3b-preview-quantized with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use sky-mighty/bu-30b-a3b-preview-quantized with Docker Model Runner:
docker model run hf.co/sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
- Lemonade
How to use sky-mighty/bu-30b-a3b-preview-quantized with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sky-mighty/bu-30b-a3b-preview-quantized:Q4_K_M
Run and chat with the model
lemonade run user.bu-30b-a3b-preview-quantized-Q4_K_M
List all available models
lemonade list
Upload 6 files
Browse files- .gitattributes +6 -0
- bu-30B-a3B-preview-F16.gguf +3 -0
- bu-30B-a3B-preview-Q6_K.gguf +3 -0
- bu-30B-a3B-preview-Q8_0.gguf +3 -0
- mmproj-bu-30b-preview-F16.gguf +3 -0
- mmproj-bu-30b-preview-Q6_K.gguf +3 -0
- mmproj-bu-30b-preview-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
bu-30B-a3B-preview-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
mmproj-bu-30b-preview-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
bu-30B-a3B-preview-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
mmproj-bu-30b-preview-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
bu-30B-a3B-preview-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
bu-30B-a3B-preview-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
bu-30B-a3B-preview-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
mmproj-bu-30b-preview-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
mmproj-bu-30b-preview-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
mmproj-bu-30b-preview-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
bu-30B-a3B-preview-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cecebd80513856a063a274c6aac71eea773f6139efb76a5df7b765a95f82f50d
|
| 3 |
+
size 61095804096
|
bu-30B-a3B-preview-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc3f54d791565aae33b72ad288bcaf4a13bfa08f152c6329d18212b30d6ffd59
|
| 3 |
+
size 25092533440
|
bu-30B-a3B-preview-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05acd65a3250328504b6048a4f0f0f76056db07ded2a69b8dc6a0ac75a8d5b58
|
| 3 |
+
size 32483933376
|
mmproj-bu-30b-preview-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ceba6e2dd58b6d699c64213a655e68748675ed775e07721554f52fad532669b1
|
| 3 |
+
size 1083499968
|
mmproj-bu-30b-preview-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ba57ceea551761fdbea0a267f19836ab01cde66e6a838cc2e7114c6d8b75db9
|
| 3 |
+
size 678897984
|
mmproj-bu-30b-preview-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a25a65edd9660555022ea8b6585f670ade9fc0c17db33fffe490940ae77ccd21
|
| 3 |
+
size 38298624
|