-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add custom endpoint for AI suggestion #4319
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@yann300 where am I supposed to execute that JS? |
@STetsing you have to run it from Remix. |
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.
The results is not displayed in the editor, Increasing the request timeout (if existent) could help
|
the second issue looks like a server issue, is this the case? |
no, the server returns a payload indeed, what is the request max timeout? the min inference time for starcoder ti max_new_word=5 is 6-5 seconds (mean value). |
I think this can be configured by passing some options to https://github.com/ethereum/remix-project/pull/4319/files#diff-456892ab56ea0fe769bc1bdb2c0ece2855f1ce80583e2309939106e9cf727f0eR68 but I don't know the default value.. |
The endpoints works well after reducing the max number of tokens (especially for the starcoder model). The timeout value must be increased for large generation requests |
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.
Working as Is
create a script in Remix:
like
and run it to use a remote endpoint instead of the in-browser model.