Hello! I wanted to flag what I think is an error when I try to use biberplus with the GPU/CUDA on my machine. When I follow the instructions from the README:
from biberplus.tagger import load_config, load_pipeline, calculate_tag_frequencies
config = load_config()
config.update({'use_gpu': True, 'n_processes': 4, 'function_words': False})
pipeline = load_pipeline(config)
frequencies_df = calculate_tag_frequencies("Your sample text goes here", pipeline, config)
print(frequencies_df)
I receive the error
Traceback (most recent call last):
File "/XXX/git/YYY/biberplus_labeling.py", line 57, in <module>
preds = biberplus_labeler(docs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/XXX/git/YYY/biberplus_labeling.py", line 39, in biberplus_labeler
pipeline = load_pipeline(config)
^^^^^^^^^^^^^^^^^^^^^
File "/XXX/.conda/envs/neurobiber/lib/python3.11/site-packages/biberplus/tagger/tagger_utils.py", line 39, in load_pipeline
spacy.require_gpu()
File "/XXX/.conda/envs/neurobiber/lib/python3.11/site-packages/thinc/util.py", line 225, in require_gpu
raise ValueError("Cannot use GPU, CuPy is not installed")
ValueError: Cannot use GPU, CuPy is not installed
Even though I have confirmed that I have installed CuPy 13.5.1 and can access a satisfactory GPU. Not quite sure what this would be, though it may just be an issue of me installing incompatible versions, etc.
For now I'll probably just run biberplus with the CPU but I may return to this issue later.
Hello! I wanted to flag what I think is an error when I try to use
biberpluswith the GPU/CUDA on my machine. When I follow the instructions from theREADME:I receive the error
Even though I have confirmed that I have installed CuPy 13.5.1 and can access a satisfactory GPU. Not quite sure what this would be, though it may just be an issue of me installing incompatible versions, etc.
For now I'll probably just run
biberpluswith the CPU but I may return to this issue later.