Skip to content

Tasks: update snippet #746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/tasks/src/local-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type LocalApp = {
| {
/**
* And if not (mostly llama.cpp), snippet to copy/paste in your terminal
* Support the placeholder {{GGUF_FILE}} that will be replaced by the gguf file path or the list of available files.
*/
snippet: (model: ModelData) => string | string[];
}
Expand All @@ -54,7 +55,7 @@ brew install llama.cpp
# Load and run the model
llama \\
--hf-repo "${model.id}" \\
--hf-file file.gguf \\
--hf-file {{GGUF_FILE}} \\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

Do you have a screenshot of how this looks with multiple GGUF files?

Copy link
Collaborator Author

@krampstudio krampstudio Jun 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,

with multiple files:
Capture d’écran 2024-06-10 à 12 12 25
(and you can copy the text with the selected file)

with a single file:
Capture d’écran 2024-06-10 à 12 14 27

-p "I believe the meaning of life is" \\
-n 128`,
`# Option 2: build llama.cpp from source with curl support
Expand Down
Loading