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

Supporting Velvet model #11716

Closed
wants to merge 9 commits into from
Closed

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.

convert_hf_to_gguf.py Outdated Show resolved Hide resolved
src/llama-chat.cpp Outdated Show resolved Hide resolved
include/llama.h Outdated Show resolved Hide resolved
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.

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.

2 participants