-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't run examples on Windows 10 #55
Comments
UPDATEI've made a mistake running the download.sh script. I've passed my email instead of the URL received from FB. |
Did your issue resolved? I am unable to run on windows 10 as well. I am getting "Distributed package doesnt have NCCL built-in error" |
@manoj21192 This will work on windows
|
Thank you! I can reproduce this. I at first entered my email and then noticed my error and entered the correct URL when running I cloned the repository again, entered the correct URL on first try and then it worked. |
What mistake am I making here? import fire from llama import Llama def main( I Am getting this error: " D:\path2\codellama>python example_completion.py For detailed information on this command, run: |
Based on the code and error message you've provided, here are some issues I've identified:
Here's a revised version of the code: from typing import Optional
import fire
from llama import Llama
def main(
ckpt_dir: str = r"D:\pathto\codellama\CodeLlama-7b",
tokenizer_path: str = r"D:\pathto\codellama\CodeLlama-7b\tokenizer.model",
temperature: float = 0.2,
top_p: float = 0.9,
max_seq_len: int = 256,
max_batch_size: int = 4,
max_gen_len: Optional[int] = None,
):
generator = Llama.build(
ckpt_dir=ckpt_dir,
tokenizer_path=tokenizer_path,
max_seq_len=max_seq_len,
max_batch_size=max_batch_size,
)
if __name__ == "__main__":
fire.Fire(main)
Try running the updated code and see if the error persists. |
Thanks, Moved One step ahead. |
@bronzwikgk Are you sure you have it in your code? |
@bronzwikgk Right, I see that you are using torch.distributed.init_process_group("nccl") |
Hi,
I've tried to run the examples, but I received this error.
The text was updated successfully, but these errors were encountered: