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

support windows #356

Merged
merged 18 commits into from
Nov 22, 2024
Merged

support windows #356

merged 18 commits into from
Nov 22, 2024

Conversation

dorren002
Copy link
Contributor

No description provided.

def __new__(cls, name: str = "ModuleReranker", *args, **kwargs):
assert name in cls.registered_reranker, f"Reranker: {name} is not registered, please register first."
item = cls.registered_reranker[name]
def __new__(cls, name: Optional[Union[Callable, str]] = "ModuleReranker", *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个Callable是给到model参数,不是给到name参数

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reranker(name='ModuleReranker', model=TrainableModule(xxx))

assert name in cls.registered_reranker, f"Reranker: {name} is not registered, please register first."
item = cls.registered_reranker[name]
else:
item = cls.registered_reranker["ModuleReranker"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改回去

output_format: Optional[str] = None, join: Union[bool, str] = False, **kwargs) -> None:
super().__init__()
self._name = name
self._name = name if isinstance(name, str) else "ModuleReranker"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个也改回去

@wzh1994 wzh1994 merged commit 0358d6c into LazyAGI:main Nov 22, 2024
11 checks passed
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 this pull request may close these issues.

3 participants