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

sdg_op component fails with RHELAI 1.3 #223

Closed
MichaelClifford opened this issue Dec 2, 2024 · 4 comments
Closed

sdg_op component fails with RHELAI 1.3 #223

MichaelClifford opened this issue Dec 2, 2024 · 4 comments
Assignees

Comments

@MichaelClifford
Copy link
Collaborator

sdg_op with RHEL 1.3 fails at line 76 due to a change in how read_taxonomy now works. It now expects an additional parameter document_output_dir to be present.

print(read_taxonomy(taxonomy_path, taxonomy_base))

This is the error:

TypeError: expected str, bytes or os.PathLike object, not NoneType

That said, it is unclear to me that line 76 here is doing much. I recommend simply removing it as read_taxonomy is called inside of the generate_data function anyways.

@tumido
Copy link
Member

tumido commented Dec 3, 2024

This error is interesting... Since the source code in the open source ILab says this param is fully optional..

https://github.com/instructlab/sdg/blob/eef8baedf36f21da73bda39270ed7378558541ad/src/instructlab/sdg/utils/taxonomy.py#L314-L319

@MichaelClifford
Copy link
Collaborator Author

Update:

Looks like /usr/share/instructlab/sdg/default_data_recipes/skills.yaml is no longer editable by the user. This causes the set_precomputed_skills_data_ratio() function that limits the size of the skills data used to raise an error: PermissionError: [Errno 13] Permission denied:

I will investigate if there is another work around for this.

@leseb
Copy link
Collaborator

leseb commented Dec 4, 2024

Update:

Looks like /usr/share/instructlab/sdg/default_data_recipes/skills.yaml is no longer editable by the user. This causes the set_precomputed_skills_data_ratio() function that limits the size of the skills data used to raise an error: PermissionError: [Errno 13] Permission denied:

I will investigate if there is another work around for this.

#230 (comment)

@MichaelClifford
Copy link
Collaborator Author

Closed by #230

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

Successfully merging a pull request may close this issue.

3 participants