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

created a pip package #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamalojasv181
Copy link
Contributor

No description provided.

@tejasvaidhyadev
Copy link
Member

tejasvaidhyadev commented Apr 2, 2023

It seems I am still facing an issue with the execution of a subprocess in Python.
Using pip install cformers

  File "<stdin>", line 1, in <module>
  File "/Users/tejasvaidhya/miniconda3/lib/python3.9/site-packages/cformers/interface.py", line 218, in generate
    process = Popen(command, stdout=PIPE, stderr=PIPE)
  File "/Users/tejasvaidhya/miniconda3/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/tejasvaidhya/miniconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/Users/tejasvaidhya/miniconda3/lib/python3.9/site-packages/cformers/cpp/main'
>>> x = ai.generate("<|prompter|>What's the Earth total population<|endoftext|><|assistant|>", num_tokens_to_generate=100)z

Also getting similar error on windows

@mallorbc
Copy link
Contributor

mallorbc commented Apr 4, 2023

I was just about to create an issue to potentially help with this. Glad to see work on this is ongoing.

I will try this PR soon.

@tejasvaidhyadev whatever issue you are facing is dealing with the binary file that is used for running gmml models

@kamalojasv181
Copy link
Contributor Author

Hey @tejasvaidhyadev I cannot replicate this. I have tried to load models on my own machine (Ubuntu 20.04) and google colab and I am successfully able to load models. I do not have access to a windows machine. Perhaps could you state the exact command that you used to run the models? Thanks

@kamalojasv181
Copy link
Contributor Author

@tejasvaidhyadev I understand the issue. The Linux binary does not work in windows. Can you make and send the binary over to me? Thanks

@tejasvaidhyadev
Copy link
Member

sure, I will send binary for you. Give me sometime

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