Skip to content

Supporting Velvet model #11716

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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Supporting Velvet model #11716

wants to merge 23 commits into from

Conversation

fbuciuni90
Copy link

I'm adding support to Velvet models (see https://huggingface.co/Almawave/Velvet-14B)

@github-actions github-actions bot added the python python script changes label Feb 6, 2025
src/llama-chat.h Outdated
@@ -39,6 +39,7 @@ enum llm_chat_template {
LLM_CHAT_TEMPLATE_GIGACHAT,
LLM_CHAT_TEMPLATE_MEGREZ,
LLM_CHAT_TEMPLATE_UNKNOWN,
LLM_CHAT_TEMPLATE_VELVET
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's also recommended to add a test for this chat template, see test-chat-template.cpp

Copy link
Collaborator

Choose a reason for hiding this comment

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

btw, this enum value is in the incorrect place. everything must come before LLM_CHAT_TEMPLATE_UNKNOWN

please also add a test case in test-chat-template.cpp. Otherwise you will expect it to be broken in the future

Copy link
Author

Choose a reason for hiding this comment

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

I added the test case for chat template as you suggested and I did the requested changes. Let me know if I still missing something. Thanks.

src/llama-chat.h Outdated
@@ -39,6 +39,7 @@ enum llm_chat_template {
LLM_CHAT_TEMPLATE_GIGACHAT,
LLM_CHAT_TEMPLATE_MEGREZ,
LLM_CHAT_TEMPLATE_UNKNOWN,
LLM_CHAT_TEMPLATE_VELVET
Copy link
Collaborator

Choose a reason for hiding this comment

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

btw, this enum value is in the incorrect place. everything must come before LLM_CHAT_TEMPLATE_UNKNOWN

please also add a test case in test-chat-template.cpp. Otherwise you will expect it to be broken in the future

@github-actions github-actions bot added the testing Everything test related label Feb 7, 2025
@fbuciuni90 fbuciuni90 requested a review from ngxson February 8, 2025 07:46
@fbuciuni90 fbuciuni90 closed this Feb 12, 2025
@fbuciuni90
Copy link
Author

fbuciuni90 commented Feb 12, 2025

I pause the pull request for more tests.

@ngxson
Copy link
Collaborator

ngxson commented Feb 12, 2025

Sorry I've been busy recently, feel free to ping when you're ready.

@fbuciuni90 fbuciuni90 reopened this Feb 24, 2025
@WasamiKirua
Copy link

would be nice having this integrated. I have tried the fork at https://github.com/fbuciuni90/llama.cpp but it did not work for the 2B ... not sure why.

@fbuciuni90
Copy link
Author

Sorry I've been busy recently, feel free to ping when you're ready.

I've aligned the pull request content with the latest release. Could you let me know if I'm still missing anything before it can be merged?
Thanks a lot for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python script changes testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants