What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-14 17:28:02
cuda_home environment variable is not set. please set it to your cuda install root.
Solution to above issue! As cuda installed through anaconda is not the entire package. Please install cuda drivers manually from Nvidia Website[ https://developer.nvidia.com/cuda-downloads ] After installation of drivers, pytorch would be able to access... Add solution -
Python 2021-09-13 04:54:02
sentence similarity python
# sentence_transformer: Python module using Sentence BERT # check documentation in source link for further details from sentence_transformers import SentenceTransformer from sentence_transformers.util import pytorch_cos_sim # cosine silarity # stsb-robe... Add solution -
Python 2021-09-11 11:44:01
basic chatbot code huggingface
from transformers import AutoModelForCausalLM, AutoTokenizer import torch tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large") model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large") # Let's chat fo... Add solution -
Shell/Bash 2021-08-30 07:25:02
pytorch for jetson nano
wget https://nvidia.box.com/shared/static/wa34qwrwtk9njtyarwt5nvo6imenfy26.whl -O torch-1.7.0-cp36-cp36m-linux_aarch64.whl sudo apt-get install python3-pip libopenblas-base libopenmpi-dev pip3 install Cython pip3 install numpy torch-1.7.0-cp36-cp36m-linu... Add solution -
Shell/Bash 2021-08-27 06:28:02
install pytorch for cuda 10.0
# CUDA 10.2 pip install torch==1.6.0 torchvision==0.7.0 # CUDA 10.1 pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html # CUDA 9.2 pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https:/... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5