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

Potential REL sharding issue #450

Open
peter-axion opened this issue Mar 8, 2024 · 3 comments
Open

Potential REL sharding issue #450

peter-axion opened this issue Mar 8, 2024 · 3 comments
Labels
bug Something isn't working feat/sharding Everything related to sharding/map-reduce. feat/task Feature: tasks

Comments

@peter-axion
Copy link

I use spacy-llm for RAG, so I have integrated pretty deeply into it and 0.7.0 broke my method of prompt generation. In the process of fixing it, I've noticed something that may be a more general bug.

The REL shard reducer unpacks RelationItem objects from each shard into a single vector.

The comment in the code says this is fine, but RelationItem objects include the entity index of the dep/dest of the relationship. I think that's going to be 0-based for each shard, so the unpacked list will not have the right relationships for all shards after the first.

@svlandeg
Copy link
Member

Hi!

Thanks for the report - we'll look into this. It does seem like this good be a potential bug.

Do you happen to have some example code that reproduces the error?

@svlandeg svlandeg added the bug Something isn't working label Mar 19, 2024
@svlandeg
Copy link
Member

0.7.0 broke my method of prompt generation

Can you specify how it broke? We didn't report any bwd-compat issues for 0.7.0, so we might need to look into this as well (and at least update the documentation if so). Perhaps move this topic to a separate discussion if you want to provide more details 🙏

@svlandeg svlandeg added feat/sharding Everything related to sharding/map-reduce. feat/task Feature: tasks labels Mar 19, 2024
@peter-axion
Copy link
Author

I made a discussion here about it.

I will try to make a test case that replicates the error using only spacy-llm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feat/sharding Everything related to sharding/map-reduce. feat/task Feature: tasks
Projects
None yet
Development

No branches or pull requests

2 participants