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

Pytorch without GPU #4

Open
ticlazau opened this issue Jun 1, 2022 · 0 comments
Open

Pytorch without GPU #4

ticlazau opened this issue Jun 1, 2022 · 0 comments

Comments

@ticlazau
Copy link

ticlazau commented Jun 1, 2022

Hello,

can this be run on a system without GPU?
When running:

export CUDA_VISIBLE_DEVICES=""

import minimal20b
import torch

model = minimal20b.create_model(
    "/home/coredump/projects/gpt-neox/20B_checkpoints/global_step150000",
    use_cache=True,
    device="cpu",
)
tokenizer = minimal20b.create_tokenizer(
    "/home/coredump/projects/gpt-neox/20B_checkpoints/20B_tokenizer.json",
)


with torch.inference_mode():
    minimal20b.greedy_generate_text(
        model, tokenizer,
        "GPTNeoX20B is a 20B-parameter autoregressive Transformer model developed by EleutherAI.",
        max_seq_len=100,
    )

I am getting:
" File "/home/coredump/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/cuda/init.py", line 214, in _lazy_init
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available"

Rgds,
FM

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

No branches or pull requests

1 participant