Skip to content
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

local-apps: update llama.cpp snippet #1103

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

ngxson
Copy link
Member

@ngxson ngxson commented Jan 14, 2025

This change is related to these upstream PR:

Example:

# for "instruct" model, conversation mode is enabled automatically
llama-cli -hf bartowski/Llama-3.2-1B-Instruct-GGUF

# for non-instruct model, it runs as completion
llama-cli -hf TheBloke/Llama-2-7B-GGUF -p "Once upon a time,"

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

very neat, UX is much better!

@julien-c julien-c requested a review from Vaibhavs10 January 14, 2025 11:30
@Vaibhavs10
Copy link
Member

Will update the docs in a sec to reflect the same

@ngxson
Copy link
Member Author

ngxson commented Jan 17, 2025

Let's merge this @Vaibhavs10 ?

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

@ggerganov tweeted about this new syntax so imo let's go 😁

@ngxson ngxson merged commit 645c58d into huggingface:main Jan 17, 2025
4 checks passed
@ngxson ngxson mentioned this pull request Jan 17, 2025
@ggerganov
Copy link
Contributor

ggerganov commented Jan 17, 2025

Ah, apologies if this was too early to showcase!

@julien-c
Copy link
Member

not at all! it's great!

ngxson added a commit that referenced this pull request Jan 17, 2025
I forgot to rebase with latest `main` to see if the lint passes or not,
ref: #1103
aykutkardas pushed a commit to gokayfem/huggingface.js that referenced this pull request Jan 20, 2025
This change is related to these upstream PR:
- ggerganov/llama.cpp#11195 allows using
tag-based repo name like on ollama
- ggerganov/llama.cpp#11214 automatically turn
on `--conversation` mode for models having chat template

Example:

```sh
# for "instruct" model, conversation mode is enabled automatically
llama-cli -hf bartowski/Llama-3.2-1B-Instruct-GGUF

# for non-instruct model, it runs as completion
llama-cli -hf TheBloke/Llama-2-7B-GGUF -p "Once upon a time,"
```
aykutkardas pushed a commit to gokayfem/huggingface.js that referenced this pull request Jan 20, 2025
I forgot to rebase with latest `main` to see if the lint passes or not,
ref: huggingface#1103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants