Skip to content

Instantly share code, notes, and snippets.

View carlfm01's full-sized avatar

Carlos Fonseca carlfm01

  • Costa Rica
View GitHub Profile
import os
import time
from typing import Optional, Tuple
import torch
from PIL import Image
import onnxruntime as onnxrt
import requests
from transformers import AutoConfig, AutoModelForVision2Seq, TrOCRProcessor, VisionEncoderDecoderModel
@carlfm01
carlfm01 / cuda_11.7_installation_on_Ubuntu_22.04
Created April 27, 2023 05:47 — forked from X-TRON404/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@carlfm01
carlfm01 / cuda_10.1_installation_on_Ubuntu_18.04
Created February 3, 2021 09:24 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
CUDA 10.1 Installation on Ubuntu 18.04
#!/bin/bash
## This gist contains instructions about cuda v10.1 and cudnn 7.6 installation in Ubuntu 18.04 for Tensorflow 2.1.0
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###