Instructions to use prithivMLmods/Aya-Expanse-8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use prithivMLmods/Aya-Expanse-8B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/Aya-Expanse-8B-GGUF", filename="aya-expanse-8b-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/Aya-Expanse-8B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/Aya-Expanse-8B-GGUF: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 prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/Aya-Expanse-8B-GGUF: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 prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/Aya-Expanse-8B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Aya-Expanse-8B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Aya-Expanse-8B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
- Ollama
How to use prithivMLmods/Aya-Expanse-8B-GGUF with Ollama:
ollama run hf.co/prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/Aya-Expanse-8B-GGUF 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 prithivMLmods/Aya-Expanse-8B-GGUF 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 prithivMLmods/Aya-Expanse-8B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/Aya-Expanse-8B-GGUF to start chatting
- Docker Model Runner
How to use prithivMLmods/Aya-Expanse-8B-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/Aya-Expanse-8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/Aya-Expanse-8B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Aya-Expanse-8B-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)AYA Expanse 8B Model Files
| File Name | Size | Description | Upload Status |
|---|---|---|---|
.gitattributes |
2.27 kB | Git attributes file | Uploaded |
README.md |
4.53 kB | Documentation file | Updated 5 days ago |
aya-expanse-8b-q2_k.gguf |
3.44 GB | Quantized Q2 model | Uploaded (LFS) |
aya-expanse-8b-q3_k_l.gguf |
4.53 GB | Quantized Q3 (large) | Uploaded (LFS) |
aya-expanse-8b-q3_k_m.gguf |
4.22 GB | Quantized Q3 (medium) | Uploaded (LFS) |
aya-expanse-8b-q3_k_s.gguf |
3.87 GB | Quantized Q3 (small) | Uploaded (LFS) |
aya-expanse-8b-q4_0.gguf |
4.8 GB | Quantized Q4 model | Uploaded (LFS) |
aya-expanse-8b-q4_k_m.gguf |
5.06 GB | Quantized Q4 (medium) | Uploaded (LFS) |
aya-expanse-8b-q4_k_s.gguf |
4.83 GB | Quantized Q4 (small) | Uploaded (LFS) |
aya-expanse-8b-q5_0.gguf |
5.67 GB | Quantized Q5 model | Uploaded (LFS) |
aya-expanse-8b-q5_k_m.gguf |
5.8 GB | Quantized Q5 (medium) | Uploaded (LFS) |
aya-expanse-8b-q5_k_s.gguf |
5.67 GB | Quantized Q5 (small) | Uploaded (LFS) |
aya-expanse-8b-q6_k.gguf |
6.6 GB | Quantized Q6 model | Uploaded (LFS) |
aya-expanse-8b-q8_0.gguf |
8.54 GB | Quantized Q8 model | Uploaded (LFS) |
Uploaded model
- Developed by: prithivMLmods
- License: apache-2.0
- Quants from model : CohereForAI/aya-expanse-8b
Here's a well-structured README.md documentation for running models with Ollama:
Run with Ollama 🦙
Note: The model name mentioned in the README.md may or may not be same.
Overview
Ollama is a powerful tool that allows you to run machine learning models effortlessly. This guide will help you download, install, and run your own GGUF models in just a few minutes.
Table of Contents
| Section | Description |
|---|---|
| Download and Install Ollama | Instructions for downloading and installing Ollama. |
| Steps to Run GGUF Models | Guidelines for running GGUF models. |
| 1. Create the Model File | Steps to create the model file. |
| 2. Add the Template Command | Instructions for adding the template command. |
| 3. Create and Patch the Model | Process for creating and patching the model. |
| Running the Model | How to run the model. |
| Sample Usage | Examples of how to use the model. |
Download and Install Ollama
To get started, download Ollama from https://ollama.com/download and install it on your Windows or Mac system.
Steps to Run GGUF Models
1. Create the Model File
First, create a model file and name it appropriately. For example, you can name your model file metallama.
2. Add the Template Command
In your model file, include a FROM line that specifies the base model file you want to use. For instance:
FROM Llama-3.2-1B.F16.gguf
Ensure that the model file is in the same directory as your script.
3. Create and Patch the Model
Open your terminal and run the following command to create and patch your model:
ollama create metallama -f ./metallama
Once the process is successful, you will see a confirmation message.
To verify that the model was created successfully, you can list all models with:
ollama list
Make sure that metallama appears in the list of models.
Running the Model
To run your newly created model, use the following command in your terminal:
ollama run metallama
Sample Usage
In the command prompt, you can execute:
D:\>ollama run metallama
You can interact with the model like this:
>>> write a mini passage about space x
Space X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration.
With its ambitious goals to make humanity a multi-planetary species and establish a sustainable human presence in
the cosmos, Space X has become a leading player in the industry. The company's spacecraft, like the Falcon 9, have
demonstrated remarkable capabilities, allowing for the transport of crews and cargo into space with unprecedented
efficiency. As technology continues to advance, the possibility of establishing permanent colonies on Mars becomes
increasingly feasible, thanks in part to the success of reusable rockets that can launch multiple times without
sustaining significant damage. The journey towards becoming a multi-planetary species is underway, and Space X
plays a pivotal role in pushing the boundaries of human exploration and settlement.
Conclusion
With these simple steps, you can easily download, install, and run your own models using Ollama. Whether you're exploring the capabilities of Llama or building your own custom models, Ollama makes it accessible and efficient.
- This README provides clear instructions and structured information to help users navigate the process of using Ollama effectively. Adjust any sections as needed based on your specific requirements or additional details you may want to include.
https://huggingface.co/prithivMLmods/Llama-3.2-1B-GGUF/resolve/main/Demo/gguf.gif
- Downloads last month
- 258
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for prithivMLmods/Aya-Expanse-8B-GGUF
Base model
CohereLabs/aya-expanse-8b
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/Aya-Expanse-8B-GGUF", filename="", )