-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: use any for n_epochs #499
fix: use any for n_epochs #499
Conversation
When will the PR being merged~ |
fine_tuning_job.go
Outdated
type Hyperparameters struct { | ||
Epochs int `json:"n_epochs"` | ||
Epochs *HyperparameterNEpochs `json:"n_epochs,omitempty"` |
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.
Hey, thank you so much for the PR! I wonder if we can use any
here to avoid Epochs: &HyperparameterNEpochs{
initialization
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.
done
Codecov Report
@@ Coverage Diff @@
## master #499 +/- ##
==========================================
+ Coverage 97.30% 97.48% +0.18%
==========================================
Files 18 18
Lines 780 836 +56
==========================================
+ Hits 759 815 +56
Misses 15 15
Partials 6 6
|
…#1159) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/sashabaranov/go-openai](https://github.com/sashabaranov/go-openai) | require | minor | `v1.15.4` -> `v1.16.0` | --- ### Release Notes <details> <summary>sashabaranov/go-openai (github.com/sashabaranov/go-openai)</summary> ### [`v1.16.0`](https://github.com/sashabaranov/go-openai/releases/tag/v1.16.0) [Compare Source](https://github.com/sashabaranov/go-openai/compare/v1.15.4...v1.16.0) #### What's Changed - Add DotProduct Method and README Example for Embedding Similarity Search by [@​ealvar3z](https://github.com/ealvar3z) in [https://github.com/sashabaranov/go-openai/pull/492](https://github.com/sashabaranov/go-openai/pull/492) - fix: use any for n_epochs by [@​henomis](https://github.com/henomis) in [https://github.com/sashabaranov/go-openai/pull/499](https://github.com/sashabaranov/go-openai/pull/499) - Feat Add headers to openai responses by [@​henomis](https://github.com/henomis) in [https://github.com/sashabaranov/go-openai/pull/506](https://github.com/sashabaranov/go-openai/pull/506) - Support get http header and x-ratelimit-\* headers by [@​liushuangls](https://github.com/liushuangls) in [https://github.com/sashabaranov/go-openai/pull/507](https://github.com/sashabaranov/go-openai/pull/507) **Full Changelog**: sashabaranov/go-openai@v1.15.4...v1.16.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/go-skynet/LocalAI). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Issue: #496
Describe the change
Hyper parameter
n_epochs
can be either a string or a int value.Describe your solution
Develop a custom un/marshaller for
n_epochs
parameter.