{"id":19225990,"url":"https://github.com/developer239/llama.cpp-ts-example","last_synced_at":"2025-06-16T02:38:45.834Z","repository":{"id":250495053,"uuid":"834598299","full_name":"developer239/llama.cpp-ts-example","owner":"developer239","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-26T23:14:13.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T21:33:06.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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-27T18:57:16.000Z","updated_at":"2024-09-26T23:14:16.000Z","dependencies_parsed_at":"2024-07-27T21:45:04.877Z","dependency_job_id":"63d5c0e8-62cc-44d7-b2f7-c7de60b69886","html_url":"https://github.com/developer239/llama.cpp-ts-example","commit_stats":null,"previous_names":["developer239/llama.cpp-ts-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama.cpp-ts-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama.cpp-ts-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama.cpp-ts-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fllama.cpp-ts-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer239","download_url":"https://codeload.github.com/developer239/llama.cpp-ts-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240298870,"owners_count":19779352,"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.228Z","updated_at":"2025-02-23T10:18:56.142Z","avatar_url":"https://github.com/developer239.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# llama.cpp-ts example\n\nThis is an example of how to use the `llama.cpp-ts` package to interact with language models loaded through `llama.cpp`.\n\n## Installation\n\nBefore installation, download any gguf model that your machine can handle. For example, this one [Meta-Llama-3.1-8B-Instruct-Q3_K_S.gguf](https://huggingface.co/bullerwins/Meta-Llama-3.1-8B-Instruct-GGUF/resolve/main/Meta-Llama-3.1-8B-Instruct-Q3_K_S.gguf) and put it in the `/models` folder.\n\n1. `yarn install`\n2. `yarn start`\n\n## Usage\n\nThis example demonstrates how to initialize the model, set a system prompt, and ask multiple connected questions to showcase context handling. The script will output both the questions and the model's responses.\n\nThe example uses the following key features of the `llama.cpp-ts` package:\n\n- Initializing the model with custom parameters\n- Setting a system prompt to define the assistant's behavior\n- Streaming responses for each question\n- Maintaining context across multiple questions\n\nYou can modify the questions or add more to explore different aspects of the model's capabilities and context handling.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fllama.cpp-ts-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper239%2Fllama.cpp-ts-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fllama.cpp-ts-example/lists"}