Closed IvanPavlyshyn closed 5 years ago
Hi, I get an issue when trying to execute model.encode command. Help me please to fix it. I'm using demo example.
Code: embeddings = model.encode(sentences, bsize=128, tokenize=False, verbose=True) print('nb sentences encoded : {0}'.format(len(embeddings)))
embeddings = model.encode(sentences, bsize=128, tokenize=False, verbose=True) print('nb sentences encoded : {0}'.format(len(embeddings)))
Error: `RuntimeError Traceback (most recent call last)
Did you find a fix?
@aconneau yeah. Set use_cuda = True helps.
use_cuda = True
Hi, I get an issue when trying to execute model.encode command. Help me please to fix it. I'm using demo example.
Code:
embeddings = model.encode(sentences, bsize=128, tokenize=False, verbose=True) print('nb sentences encoded : {0}'.format(len(embeddings)))
Error: `RuntimeError Traceback (most recent call last)