{"id":19225987,"url":"https://github.com/developer239/llama-chat-cmake-example","last_synced_at":"2025-07-20T04:35:42.009Z","repository":{"id":250462107,"uuid":"834531892","full_name":"developer239/llama-chat-cmake-example","owner":"developer239","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-26T22:22:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T10:19:13.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developer239.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T14:54:43.000Z","updated_at":"2024-09-26T22:22:08.000Z","dependencies_parsed_at":"2024-07-27T16:44:29.401Z","dependency_job_id":"03717d85-86f6-45a9-8e03-65b88f2cd234","html_url":"https://github.com/developer239/llama-chat-cmake-example","commit_stats":null,"previous_names":["developer239/llama-wrapped-cmake-example","developer239/llama-chat-cmake-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer239/llama-chat-cmake-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama-chat-cmake-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama-chat-cmake-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama-chat-cmake-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama-chat-cmake-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer239","download_url":"https://codeload.github.com/developer239/llama-chat-cmake-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama-chat-cmake-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262547273,"owners_count":23327139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T15:17:01.150Z","updated_at":"2025-06-29T06:33:32.958Z","avatar_url":"https://github.com/developer239.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LlamaChat CMake Example\n\nThis project demonstrates how to use the [LlamaChat](https://github.com/developer239/llama-chat) library in a C++ application. It shows how to initialize the model, set up the context, and run multiple queries using the LlamaChat interface.\n\n## Project Structure\n\n```\nllamachat-example/\n│\n├── CMakeLists.txt\n├── src/\n│   └── main.cpp\n├── models/\n│   └── Meta-Llama-3.1-8B-Instruct-Q3_K_S.gguf\n└── externals/\n    └── llama-chat/\n```\n\n## Setup\n\n1. Clone this repository:\n   ```\n   git clone https://github.com/your-username/llamachat-example.git\n   cd llamachat-example\n   ```\n\n2. Initialize and update the LlamaChat submodule:\n   ```\n   git submodule update --init --recursive\n   ```\n\n3. Place your language model file (e.g., Meta-Llama-3.1-8B-Instruct-Q3_K_S.gguf) in the `models/` directory.\n\n4. Create a build directory and run CMake:\n   ```\n   mkdir build\n   cd build\n   cmake ..\n   ```\n\n5. Build the project:\n   ```\n   cmake --build .\n   ```\n\n## Usage\n\nAfter building the project, you can run the example application:\n\n```\n./llamachat_example\n```\n\nThe application will initialize the LlamaChat model, set a system prompt, and then ask a series of predefined questions. The responses will be printed to the console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fllama-chat-cmake-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper239%2Fllama-chat-cmake-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fllama-chat-cmake-example/lists"}