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

strange error from together fine-tuning create --training-file "$file_id" --model "meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" #226

Open
silvacarl2 opened this issue Dec 19, 2024 · 7 comments
Assignees

Comments

@silvacarl2
Copy link

getting strange error from: together fine-tuning create --training-file "$file_id" --model "meta-llama/Meta-Llama-3.1-8B-Instruct-Reference"

together fine-tuning create --training-file "$file_id" --model "meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" > fine-tuning-job.json
message='The default LoRA rank for meta-llama/Meta-Llama-3.1-8B-Instruct-Reference has been changed to 64 as the max available.\nAlso, the default learning rate for LoRA fine-tuning has been changed to 0.001.'
message='The default LoRA rank for meta-llama/Meta-Llama-3.1-8B-Instruct-Reference has been changed to 64 as the max available.\nAlso, the default learning rate for LoRA fine-tuning has been changed to 0.001.'

message='Starting from together>=1.3.0, the default batch size is set to the maximum allowed value for each model.'
message='Starting from together>=1.3.0, the default batch size is set to the maximum allowed value for each model.'
Traceback (most recent call last):
File "/home/silvacarl/.local/bin/together", line 8, in
sys.exit(main())
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/silvacarl/.local/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/silvacarl/.local/lib/python3.10/site-packages/together/cli/api/finetune.py", line 239, in create
response = client.fine_tuning.create(
File "/home/silvacarl/.local/lib/python3.10/site-packages/together/resources/finetune.py", line 256, in create
response, _, _ = requestor.request(
File "/home/silvacarl/.local/lib/python3.10/site-packages/together/abstract/api_requestor.py", line 249, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/silvacarl/.local/lib/python3.10/site-packages/together/abstract/api_requestor.py", line 632, in _interpret_response
self._interpret_response_line(
File "/home/silvacarl/.local/lib/python3.10/site-packages/together/abstract/api_requestor.py", line 701, in interpret_response_line
raise self.handle_error_response(resp, rcode, stream_error=stream)
together.error.InvalidRequestError: Error code: 404 - {"message": "Invalid finetune param: ", "type
": "invalid_request_error", "param": "", "code": ""}

@eddiehou2
Copy link

Hi @silvacarl2 , what version of the client are you using?

@silvacarl2
Copy link
Author

the most recent.

from the API, it works.

doing the exact same thing via the CLI creates the above error.

@eddiehou2
Copy link

Could you please send the version to verify?

@silvacarl2
Copy link
Author

together --version
Version 1.3.9

@mryab mryab assigned azahed98 and unassigned mryab Dec 20, 2024
@azahed98
Copy link
Contributor

Hi @silvacarl2 , can you verify that $file_id is set and not empty? I am able to reproduce this error when an empty string is passed into the training file.

@silvacarl2
Copy link
Author

yup will do. right now we have everything working correctly using the API.

by the way, your stuff and your company is awesome.

@azahed98
Copy link
Contributor

Glad to hear! Let us know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants