Instructions to use AstroMLab/AstroSage-8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AstroMLab/AstroSage-8B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AstroMLab/AstroSage-8B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf AstroMLab/AstroSage-8B-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AstroMLab/AstroSage-8B-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf AstroMLab/AstroSage-8B-GGUF:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AstroMLab/AstroSage-8B-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AstroMLab/AstroSage-8B-GGUF:BF16
Use Docker
docker model run hf.co/AstroMLab/AstroSage-8B-GGUF:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use AstroMLab/AstroSage-8B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AstroMLab/AstroSage-8B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AstroMLab/AstroSage-8B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AstroMLab/AstroSage-8B-GGUF:BF16
- Ollama
How to use AstroMLab/AstroSage-8B-GGUF with Ollama:
ollama run hf.co/AstroMLab/AstroSage-8B-GGUF:BF16
- Unsloth Desktop
- Docker Model Runner
How to use AstroMLab/AstroSage-8B-GGUF with Docker Model Runner:
docker model run hf.co/AstroMLab/AstroSage-8B-GGUF:BF16
- Lemonade
How to use AstroMLab/AstroSage-8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AstroMLab/AstroSage-8B-GGUF:BF16
Run and chat with the model
lemonade run user.AstroSage-8B-GGUF-BF16
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -127,10 +127,16 @@ if __name__ == "__main__":
|
|
| 127 |
```
|
| 128 |
|
| 129 |
### Installation Requirements
|
|
|
|
| 130 |
```bash
|
| 131 |
pip install llama-cpp-python huggingface_hub
|
| 132 |
```
|
| 133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
### Key Parameters
|
| 135 |
- `n_ctx`: Context window size (default: 2048)
|
| 136 |
- `n_threads`: Number of CPU threads to use (adjust based on your hardware)
|
|
|
|
| 127 |
```
|
| 128 |
|
| 129 |
### Installation Requirements
|
| 130 |
+
|
| 131 |
```bash
|
| 132 |
pip install llama-cpp-python huggingface_hub
|
| 133 |
```
|
| 134 |
|
| 135 |
+
For Macbook with Apple Silicon, install llama-cpp with the following instead
|
| 136 |
+
```bash
|
| 137 |
+
CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES=arm64 -DLLAMA_METAL=on" pip install llama-cpp-python
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
### Key Parameters
|
| 141 |
- `n_ctx`: Context window size (default: 2048)
|
| 142 |
- `n_threads`: Number of CPU threads to use (adjust based on your hardware)
|