This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a32543254
approved these changes
Jan 31, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a32543254
reviewed
Jan 31, 2024
intel_extension_for_transformers/transformers/modeling/modeling_auto.py
Outdated
Show resolved
Hide resolved
intel_extension_for_transformers/transformers/modeling/modeling_auto.py
Outdated
Show resolved
Hide resolved
hshen14
reviewed
Jan 31, 2024
intel_extension_for_transformers/transformers/modeling/modeling_auto.py
Outdated
Show resolved
Hide resolved
Suggest removing streamer in the sample code to simplify the example further. We've done in the main page. |
Zhenzhong1
force-pushed
the
zhenzhong/APIextend
branch
3 times, most recently
from
February 1, 2024 03:23
581435a
to
4034e21
Compare
Fixed. |
@hshen14 @a32543254 Need to print output. outputs = model.generate(inputs, max_new_tokens=300)
print(outpus) But as the picutre shown, the output is logit_id. It means we still need to add the deocder if we want the ouput to be text. outputs = model.generate(inputs,max_new_tokens=300)
print(outputs)
for i in outputs:
print(tokenizer.decode(i)) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
[LLM Runtime] Extend API for GGUF
Description
Add the model_type arg:
model_type can be set manually or empty.
If the model_type is empty, it will be set according to the HF configuration automatically.
Error tests:
Correct tests:
Expected Behavior & Potential Risk
N/A
How has this PR been tested?
Manualluy
Dependency Change?
N/A