Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Sorry For The Bombarding With Errors.. But Here Comes Another One

Sorry for the bombarding with errors.. but here comes another one 🙂

I have torch installed locally (through the transformers library) and when sending it to a queue, I get
from simpletransformers.classification.classification_model import ClassificationModel File "/root/.trains/venvs-builds/3.6/lib/python3.6/site-packages/simpletransformers/classification/classification_model.py", line 20, in import torch ModuleNotFoundError: No module named 'torch'
pip freeze | grep torch shows it is indeed installed locally (output torch==1.6.0 ), logs on the agent shows torch not even installed (while other libs did) - what could be the reason for that?

  
  
Posted 4 years ago
Votes Newest

Answers 3


Cool, now I understand the auto detection better

  
  
Posted 4 years ago

WackyRabbit7 the auto detection will only import direct packages you import (so that we do not end up with bloated venvs)
It seems that the transformers library does not have it as a requirements, otherwise it would have pulled it...
In your code you can always do either:
import torchor
Task.add_requirements('torch')

  
  
Posted 4 years ago

This worked ✔

  
  
Posted 4 years ago
899 Views
3 Answers
4 years ago
one year ago
Tags