Instructions to use CohereLabs/tiny-aya-earth-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CohereLabs/tiny-aya-earth-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CohereLabs/tiny-aya-earth-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use CohereLabs/tiny-aya-earth-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 CohereLabs/tiny-aya-earth-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CohereLabs/tiny-aya-earth-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
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 CohereLabs/tiny-aya-earth-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
Use Docker
docker model run hf.co/CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use CohereLabs/tiny-aya-earth-GGUF with Ollama:
ollama run hf.co/CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use CohereLabs/tiny-aya-earth-GGUF with Docker Model Runner:
docker model run hf.co/CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
- Lemonade
How to use CohereLabs/tiny-aya-earth-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CohereLabs/tiny-aya-earth-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.tiny-aya-earth-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
AttributeError: 'LlamaModel' object has no attribute 'sampler'
pip freeze | grep llama
llama_cpp_python==0.3.16
python main.py
ERROR: Traceback (most recent call last):
File "backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/miniconda3/lib/python3.12/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/home/user/workspace/ai/hooshi/backend/main.py", line 49, in lifespan
llm_svc = LLMService()
^^^^^^^^^^^^
File "backend/services/llm_service.py", line 7, in init
self._llm = Llama(
^^^^^^
File "backend/.venv/lib/python3.12/site-packages/llama_cpp/llama.py", line 374, in init
internals.LlamaModel(
File "backend/.venv/lib/python3.12/site-packages/llama_cpp/_internals.py", line 58, in init
raise ValueError(f"Failed to load model from file: {path_model}")
ValueError: Failed to load model from file:backend/models/tiny-aya-earth-q4_k_m.gguf
Exception ignored in: <function LlamaModel.__del__ at 0x7fde0361e2a0>
Traceback (most recent call last):
File "backend/.venv/lib/python3.12/site-packages/llama_cpp/_internals.py", line 86, in del
self.close()
File "backend/.venv/lib/python3.12/site-packages/llama_cpp/_internals.py", line 78, in close
if self.sampler is not None:
^^^^^^^^^^^^
AttributeError: 'LlamaModel' object has no attribute 'sampler'
ERROR: Application startup failed. Exiting.
((.venv) ) (base) user@holap:~/backend$ pip freeze | grep llama
llama_cpp_python==0.3.16