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
Download common/parsers/muse-glimmer.cpp from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 6.53 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/common/parsers/muse-glimmer.cpp
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/common/parsers/muse-glimmer.cpp
-
curl -L -o muse-glimmer.cpp https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/common/parsers/muse-glimmer.cpp
6.53 kB
| // An assistant turn is rendered as one or more messages, each | |
| // "<|start|>assistant to=<recipient><|message|>{content}{END}" where END is | |
| // <|eom|> (more messages follow) or <|eot|> (end of turn): | |
| // - chain-of-thought: to=self, terminated by <|eom|> | |
| // - final answer: to=user, terminated by <|eot|> | |
| // The generation prompt is just "<|start|>assistant"; the model emits its own | |
| // " to=...<|message|>". | |
| common_chat_params common_chat_params_init_muse_glimmer(const common_chat_template & tmpl, | |
| const autoparser::generation_params & inputs) { | |
| common_chat_params data; | |
| data.prompt = common_chat_template_direct_apply_impl(tmpl, inputs); | |
| data.generation_prompt = "<|start|>assistant"; | |
| data.format = COMMON_CHAT_FORMAT_PEG_NATIVE; | |
| data.supports_thinking = true; | |
| data.preserved_tokens = { | |
| "<|start|>", "<|message|>", "<|eom|>", "<|eot|>", | |
| // ATEM tool-call markup emitted on " to=<tool>" turns. | |
| "<atem:function_calls>", "<atem:invoke", "<atem:parameter", "</atem:parameter>", | |
| "</atem:invoke>", "</atem:function_calls>", | |
| }; | |
| data.message_delimiters = { | |
| { COMMON_CHAT_ROLE_ASSISTANT, "<|start|>assistant" }, | |
| { COMMON_CHAT_ROLE_USER, "<|start|>user" }, | |
| { COMMON_CHAT_ROLE_SYSTEM, "<|start|>system" }, | |
| { COMMON_CHAT_ROLE_TOOL, "<|start|>tool" }, | |
| }; | |
| if (inputs.has_continuation()) { | |
| const auto & msg = inputs.continue_msg; | |
| data.generation_prompt = "<|start|>assistant to=self<|message|>" + msg.reasoning_content; | |
| if (inputs.continue_final_message == COMMON_CHAT_CONTINUATION_CONTENT) { | |
| data.generation_prompt += "<|eom|><|start|>assistant to=user<|message|>" + msg.render_content(); | |
| } | |
| data.prompt += data.generation_prompt; | |
| } | |
| auto extract_reasoning = inputs.reasoning_format != COMMON_REASONING_FORMAT_NONE; | |
| auto has_tools = inputs.tools.is_array() && !inputs.tools.empty(); | |
| // Constrained grammar whenever tools are offered. | |
| auto include_grammar = has_tools && inputs.tool_choice != COMMON_CHAT_TOOL_CHOICE_NONE; | |
| auto parser = build_chat_peg_parser([&](common_chat_peg_builder & p) { | |
| auto start = p.rule("start", p.literal("<|start|>assistant")); | |
| if (!extract_reasoning && !include_grammar) { | |
| return start + p.content(p.rest()); | |
| } | |
| if (extract_reasoning) { | |
| p.rule("analysis", p.literal(" to=self<|message|>") + p.reasoning(p.until("<|eom|>")) + p.literal("<|eom|>")); | |
| } else { | |
| p.rule("analysis", p.literal(" to=self<|message|>") + p.content(p.until("<|eom|>")) + p.literal("<|eom|>")); | |
| } | |
| auto analysis = p.ref("analysis"); | |
| auto recipient = p.optional(p.literal(" to=user")); | |
| auto final_msg = p.rule("final", recipient + p.literal("<|message|>") + | |
| p.content(p.until_one_of({ "<|eot|>", "<|eom|>" }))); | |
| if (has_tools && inputs.tool_choice != COMMON_CHAT_TOOL_CHOICE_NONE) { | |
| auto string_value = p.ac( | |
| p.tool_arg_string_value(p.until("</atem:parameter>")) + p.tool_arg_close(p.literal("</atem:parameter>")), | |
| "</atem:parameter>"); | |
| auto tool_choice = p.choice(); | |
| foreach_function(inputs.tools, [&](const json & tool) { | |
| const auto & function = tool.at("function"); | |
| const std::string name = function.at("name"); | |
| std::vector<common_peg_parser> arg_rules; | |
| foreach_parameter(function, [&](const common_chat_schema_property & prop, const common_chat_schema_document_ptr & doc) { | |
| auto value_parser = p.eps(); | |
| if (prop.schema->may_be_string()) { | |
| value_parser = string_value; | |
| } else { | |
| value_parser = p.tool_arg_json_value( | |
| p.schema(p.json(), "tool-" + name + "-arg-" + prop.name + "-schema", doc, *prop.schema)) | |
| + p.tool_arg_close(p.literal("</atem:parameter>")); | |
| } | |
| arg_rules.push_back(p.tool_arg( | |
| p.tool_arg_open(p.literal("<atem:parameter name=\"") + p.tool_arg_name(p.literal(prop.name)) + p.literal("\">")) + | |
| value_parser)); | |
| }); | |
| auto args = p.eps(); | |
| if (!arg_rules.empty()) { | |
| args = p.zero_or_more(p.choice(arg_rules) + p.space()); | |
| } | |
| auto tool_parser = p.tool( | |
| p.tool_open(p.literal(" to=") + p.until("<|message|>") + | |
| p.literal("<|message|><atem:function_calls>") + p.space() + | |
| p.literal("<atem:invoke name=\"") + p.tool_name(p.literal(name)) + p.literal("\">") + p.space()) | |
| << p.tool_args(args) | |
| << p.tool_close(p.literal("</atem:invoke>") + p.space() + p.literal("</atem:function_calls>"))); | |
| tool_choice |= p.rule("tool-" + name, tool_parser); | |
| }); | |
| auto tool_calls = inputs.parallel_tool_calls | |
| ? p.trigger_rule("tool-call", tool_choice + p.zero_or_more(p.literal("<|eom|>") + start + tool_choice)) | |
| : p.trigger_rule("tool-call", tool_choice); | |
| if (inputs.tool_choice == COMMON_CHAT_TOOL_CHOICE_REQUIRED) { | |
| return p.zero_or_more(start + analysis) + start + tool_calls; | |
| } | |
| auto trailing_calls = p.optional(p.literal("<|eom|>") + start + tool_calls); | |
| return p.zero_or_more(start + analysis) + start + (tool_calls | (final_msg + trailing_calls)); | |
| } | |
| return p.zero_or_more(start + analysis) + start + final_msg; | |
| }); | |
| data.parser = parser.save(); | |
| if (include_grammar) { | |
| data.grammar_lazy = inputs.tool_choice != COMMON_CHAT_TOOL_CHOICE_REQUIRED; | |
| data.grammar = build_grammar([&](const common_grammar_builder & builder) { | |
| parser.build_grammar(builder, data.grammar_lazy); | |
| }); | |
| data.grammar_triggers = { | |
| { COMMON_GRAMMAR_TRIGGER_TYPE_PATTERN, | |
| "<\\|start\\|>assistant( to=(?!self<\\|message\\|>)(?!user<\\|message\\|>)[^<]*?<\\|message\\|>)" }, | |
| }; | |
| } | |
| return data; | |
| } | |