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

ModuleNotFoundError: No module named 'xfastertransformer.tools' #83

Closed
JunxiChhen opened this issue Nov 27, 2023 · 4 comments
Closed

ModuleNotFoundError: No module named 'xfastertransformer.tools' #83

JunxiChhen opened this issue Nov 27, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@JunxiChhen
Copy link
Contributor

I'm using commit f205d37 to compile xfastertransformer.
When "import xfastertransformer", it shows error:

2: Traceback (most recent call last):
2:   File "/home/workspace/xFasterTransformer/benchmark/benchmark.py", line 89, in <module>
2:     import xfastertransformer
2:   File "/root/anaconda3/envs/llm/lib/python3.9/site-packages/xfastertransformer-1.0.0-py3.9-linux-x86_64.egg/xfastertransformer/__init__.py", line 22, in <module>
2:     from .tools import LlamaConvert
2: ModuleNotFoundError: No module named 'xfastertransformer.tools'
@pujiang2018
Copy link
Contributor

@Duyi-Wang could you pls fix this?

@Duyi-Wang Duyi-Wang added the bug Something isn't working label Nov 27, 2023
@Duyi-Wang
Copy link
Contributor

This code has not been included in the whl package. You can comment out this portion of the code in src/xfastertransformer/__init__.py to bypass it. These lines are used for model conversion and are unrelated to performance.
I will submit a pull request to address this.

@Duyi-Wang
Copy link
Contributor

PR #84

@JunxiChhen
Copy link
Contributor Author

Test passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants