ggml-org/llama.cpp

Refactor: Existing examples refactoring opportunities

Open

#7,559 opened on 2024年5月27日

GitHub で見る
 (0 comments) (2 reactions) (0 assignees)C++ (18,202 forks)batch import
help wantedrefactoring

Repository metrics

Stars
 (110,169 stars)
PR merge metrics
 (平均マージ 6d 8h) (30d で 389 merged PRs)

説明

GG in this PR was suggesting a refactoring of examples and provided an example of what he would like to refactor. This is a ticket to inform others about opportunities to improve examples

I think a bigger advantage would be to do some refactoring in the existing examples and "hide" some of the state for sampling and KV cache management that we expose behind the common API

If there is any other aspect of the example which is currently a pain point for developer grokking, feel free to also suggest some so it can be added here.

コントリビューターガイド