{"id":27172796,"url":"https://github.com/mobile-artificial-intelligence/llama_sdk","last_synced_at":"2025-10-11T02:36:26.224Z","repository":{"id":225596181,"uuid":"765001096","full_name":"Mobile-Artificial-Intelligence/llama_sdk","owner":"Mobile-Artificial-Intelligence","description":"lcpp is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid)","archived":false,"fork":false,"pushed_at":"2025-10-05T00:21:41.000Z","size":1881,"stargazers_count":100,"open_issues_count":8,"forks_count":24,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-05T01:36:53.654Z","etag":null,"topics":["facebook","flutter-ai","gemma","ggml","gguf","llama","llama2","llamacpp","llm","llm-inference","local-ai","meta","mistral","mixtral","mobile-ai"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mobile-Artificial-Intelligence.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Mobile-Artificial-Intelligence","patreon":"user?u=104890863","buy_me_a_coffee":"danemadsen","ko_fi":"danemadsen"}},"created_at":"2024-02-29T05:08:07.000Z","updated_at":"2025-10-05T00:21:44.000Z","dependencies_parsed_at":"2024-04-01T04:24:19.430Z","dependency_job_id":"bdbd9d9b-442c-44c6-a18e-db558e35b6b3","html_url":"https://github.com/Mobile-Artificial-Intelligence/llama_sdk","commit_stats":{"total_commits":168,"total_committers":3,"mean_commits":56.0,"dds":"0.011904761904761862","last_synced_commit":"100b2df0cefbab0b8e3d3448703d408343724313"},"previous_names":["mobile-artificial-intelligence/maid_llm","mobile-artificial-intelligence/dart_lcpp","mobile-artificial-intelligence/lcpp","mobile-artificial-intelligence/llama_sdk","mobile-artificial-intelligence/llama_dart"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Mobile-Artificial-Intelligence/llama_sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mobile-Artificial-Intelligence%2Fllama_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mobile-Artificial-Intelligence%2Fllama_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mobile-Artificial-Intelligence%2Fllama_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mobile-Artificial-Intelligence%2Fllama_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mobile-Artificial-Intelligence","download_url":"https://codeload.github.com/Mobile-Artificial-Intelligence/llama_sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mobile-Artificial-Intelligence%2Fllama_sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005941,"owners_count":26083999,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["facebook","flutter-ai","gemma","ggml","gguf","llama","llama2","llamacpp","llm","llm-inference","local-ai","meta","mistral","mixtral","mobile-ai"],"created_at":"2025-04-09T10:30:18.035Z","updated_at":"2025-10-11T02:36:26.218Z","avatar_url":"https://github.com/Mobile-Artificial-Intelligence.png","language":"C++","funding_links":["https://github.com/sponsors/Mobile-Artificial-Intelligence","https://patreon.com/user?u=104890863","https://buymeacoffee.com/danemadsen","https://ko-fi.com/danemadsen"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" id = \"top\"\u003e\n  \u003cimg alt=\"logo\" height=\"200px\" src=\"https://raw.githubusercontent.com/Mobile-Artificial-Intelligence/maid/refs/heads/main/images/logo.png\"\u003e\n\u003c/div\u003e\n\n# llama_sdk\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build Android](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-android.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-android.yml)\n[![Build iOS](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-ios.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-ios.yml)\n[![Build Linux](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-linux.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-linux.yml)\n[![Build MacOS](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-macos.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-macos.yml)\n[![Build Windows](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-windows.yml/badge.svg)](https://github.com/Mobile-Artificial-Intelligence/llama_sdk/actions/workflows/build-windows.yml)\n\n\u003c/div\u003e\n\nllama_sdk is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid)\n\n## Features\n\n- Optional use of isolations for parallel processing\n- Streaming support\n\n## Getting started\n\nTo use this package, add `llama_sdk` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n```yaml\ndependencies:\n  llama_sdk: ^0.0.5\n```\n\nthen you can import llama in your Dart code\n\n```dart\nimport 'package:llama_sdk/llama_sdk.dart';\n```\n\n## Usage\n\nBelow is a simple example of how to use llama\n\n```dart\nfinal llama = Llama(LlamaParams(\n  modelFile: File('path/to/model'),\n  nCtx: 2048, \n  nBatch: 2048,\n  greedy: true\n));\n\nfinal messages = [\n  LlamaMessage.withRole(role: 'user', content: 'Hello World'),\n];\n\nfinal stream = llama.prompt(messages);\n\nstream.listen((event) {\n  print(event);\n});\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n```\nMIT License\n\nCopyright (c) 2023 Dane Madsen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobile-artificial-intelligence%2Fllama_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobile-artificial-intelligence%2Fllama_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobile-artificial-intelligence%2Fllama_sdk/lists"}