-
Notifications
You must be signed in to change notification settings - Fork 321
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
modelscope qwen 7b/14b #123
Conversation
"use_raw_prompt": true, | ||
"top_p": 0.8, | ||
"top_k": 10, | ||
"seed": 123, |
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.
remove seed
except RuntimeError as e: | ||
yield {'llm_text': str(e)} | ||
except Exception: | ||
except RuntimeError: | ||
s = self.llm.generate(llm_artifacts) |
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.
这里换了一下是遇到了啥情况么?还是有什么考虑
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.
当llm没有streaming gen时,会raise RuntimeError。所以原逻辑不会调用generate。
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.
奇怪,之前逻辑能走通。好的。
<!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> ## Change Summary <!-- Please give a short summary of the changes. --> ## Related issue number <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. --> ## Checklist * [ ] The pull request title is a good summary of the changes - it will be used in the changelog * [ ] Unit tests for the changes exist * [ ] Run `pre-commit install` and `pre-commit run --all-files` before git commit, and passed lint check. * [ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least **pass the Unit tests on local** * [ ] Documentation reflects the changes where applicable * [ ] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**
<!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> ## Change Summary skip api test for all forked pr <!-- Please give a short summary of the changes. --> ## Related issue number <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. --> ## Checklist * [ ] The pull request title is a good summary of the changes - it will be used in the changelog * [ ] Unit tests for the changes exist * [ ] Run `pre-commit install` and `pre-commit run --all-files` before git commit, and passed lint check. * [ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least **pass the Unit tests on local** * [ ] Documentation reflects the changes where applicable * [ ] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**
<!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> ## Change Summary fix bugs add instruction for usage <!-- Please give a short summary of the changes. --> ## Related issue number <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. --> ## Checklist * [ ] The pull request title is a good summary of the changes - it will be used in the changelog * [ ] Unit tests for the changes exist * [ ] Run `pre-commit install` and `pre-commit run --all-files` before git commit, and passed lint check. * [ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least **pass the Unit tests on local** * [ ] Documentation reflects the changes where applicable * [ ] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**
<!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> ## Change Summary add build error msg ## Related issue number <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. --> ## Checklist * [ ] The pull request title is a good summary of the changes - it will be used in the changelog * [ ] Unit tests for the changes exist * [x] Run `pre-commit install` and `pre-commit run --all-files` before git commit, and passed lint check. * [ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least **pass the Unit tests on local** * [ ] Documentation reflects the changes where applicable * [ ] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**
<!-- Thank you for your contribution! --> <!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR --> ## Change Summary <!-- Please give a short summary of the changes. --> Support Azure openai, reference [here](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Cpython-new&pivots=programming-language-python) ## Related issue number #243 <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. --> ## Checklist * [x] The pull request title is a good summary of the changes - it will be used in the changelog * [ ] Unit tests for the changes exist * [x] Run `pre-commit install` and `pre-commit run --all-files` before git commit, and passed lint check. * [x] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have at least **pass the Unit tests on local** * [x] Documentation reflects the changes where applicable * [x] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers** Please review @zzhangpurdue
No description provided.