Instructions to use Felipe97/llama-cpp-compiled 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 Felipe97/llama-cpp-compiled 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 Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
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 Felipe97/llama-cpp-compiled # Run inference directly in the terminal: ./build/bin/llama cli -hf Felipe97/llama-cpp-compiled
Use Docker
docker model run hf.co/Felipe97/llama-cpp-compiled
- Llama new
- LM Studio
- Jan
- Ollama
How to use Felipe97/llama-cpp-compiled with Ollama:
ollama run hf.co/Felipe97/llama-cpp-compiled
- Unsloth Desktop
- Docker Model Runner
How to use Felipe97/llama-cpp-compiled with Docker Model Runner:
docker model run hf.co/Felipe97/llama-cpp-compiled
- Lemonade
How to use Felipe97/llama-cpp-compiled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Felipe97/llama-cpp-compiled
Run and chat with the model
lemonade run user.llama-cpp-compiled-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
llama-cpp-compiled / examples /llama.android /app /src /main /java /com /example /llama /MessageAdapter.kt
Download examples/llama.android/app/src/main/java/com/example/llama/MessageAdapter.kt from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/app/src/main/java/com/example/llama/MessageAdapter.kt
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled@eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/app/src/main/java/com/example/llama/MessageAdapter.kt
-
curl -L -o MessageAdapter.kt https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/app/src/main/java/com/example/llama/MessageAdapter.kt
1.76 kB
| package com.example.llama | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import android.widget.TextView | |
| import androidx.recyclerview.widget.RecyclerView | |
| data class Message( | |
| val id: String, | |
| val content: String, | |
| val isUser: Boolean | |
| ) | |
| class MessageAdapter( | |
| private val messages: List<Message> | |
| ) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | |
| companion object { | |
| private const val VIEW_TYPE_USER = 1 | |
| private const val VIEW_TYPE_ASSISTANT = 2 | |
| } | |
| override fun getItemViewType(position: Int): Int { | |
| return if (messages[position].isUser) VIEW_TYPE_USER else VIEW_TYPE_ASSISTANT | |
| } | |
| override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | |
| val layoutInflater = LayoutInflater.from(parent.context) | |
| return if (viewType == VIEW_TYPE_USER) { | |
| val view = layoutInflater.inflate(R.layout.item_message_user, parent, false) | |
| UserMessageViewHolder(view) | |
| } else { | |
| val view = layoutInflater.inflate(R.layout.item_message_assistant, parent, false) | |
| AssistantMessageViewHolder(view) | |
| } | |
| } | |
| override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { | |
| val message = messages[position] | |
| if (holder is UserMessageViewHolder || holder is AssistantMessageViewHolder) { | |
| val textView = holder.itemView.findViewById<TextView>(R.id.msg_content) | |
| textView.text = message.content | |
| } | |
| } | |
| override fun getItemCount(): Int = messages.size | |
| class UserMessageViewHolder(view: View) : RecyclerView.ViewHolder(view) | |
| class AssistantMessageViewHolder(view: View) : RecyclerView.ViewHolder(view) | |
| } | |