Instructions to use DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF", filename="CohereForAI.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 DevQuasar-3/CohereForAI.aya-expanse-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 DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DevQuasar-3/CohereForAI.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 serve -hf DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use DevQuasar-3/CohereForAI.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 "DevQuasar-3/CohereForAI.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": "DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
- Ollama
How to use DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF with Ollama:
ollama run hf.co/DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
- Unsloth Studio
How to use DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.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 DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF with Docker Model Runner:
docker model run hf.co/DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
- Lemonade
How to use DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DevQuasar-3/CohereForAI.aya-expanse-8b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CohereForAI.aya-expanse-8b-GGUF-Q4_K_M
List all available models
lemonade list
how to convert this model in gguf format.
This model possible to create in llama.cpp??
Not sure I understand the question.
These quants are created with llama.cpp
This cohere original llm model possible to convert gguf format.
Which package used to convert this format?.
Beacause, some cohere architecture not support in llama. Cpp.
This is created with llama.cpp
This arch is supported in llama.cpp:
https://github.com/ggml-org/llama.cpp/blob/master/convert_hf_to_gguf.py#L3923
Thank you so much.
Hi, You quantization in CohereLabs/c4ai-command-r7b-12-2024 this model right?.
ValueError Traceback (most recent call last)
in <cell line: 0>()
2 model_path = "vicky4s4s/cohere_7b_gguf"
3
----> 4 model = Llama(model_path=model_path, n_gpu_layers=100)
/usr/local/lib/python3.11/dist-packages/llama_cpp/llama.py in init(self, model_path, n_gpu_layers, split_mode, main_gpu, tensor_split, rpc_servers, vocab_only, use_mmap, use_mlock, kv_overrides, seed, n_ctx, n_batch, n_ubatch, n_threads, n_threads_batch, rope_scaling_type, pooling_type, rope_freq_base, rope_freq_scale, yarn_ext_factor, yarn_attn_factor, yarn_beta_fast, yarn_beta_slow, yarn_orig_ctx, logits_all, embedding, offload_kqv, flash_attn, no_perf, last_n_tokens_size, lora_base, lora_scale, lora_path, numa, chat_format, chat_handler, draft_model, tokenizer, type_k, type_v, spm_infill, verbose, **kwargs)
366
367 if not os.path.exists(model_path):
--> 368 raise ValueError(f"Model path does not exist: {model_path}")
369
370 self._model = self._stack.enter_context(
ValueError: Model path does not exist: vicky4s4s/cohere_7b_gguf
Cohere models llama.cpp used to convert after, model load time this error will be raise. how to fix this one. please let me know any idea or give the complete instructions how to convert this models proper way in step by step.
