Skip to content

Instantly share code, notes, and snippets.

View lucataco's full-sized avatar
🎯
Focusing

Luis Catacora lucataco

🎯
Focusing
View GitHub Profile
@lucataco
lucataco / UbuntuMLsetup.sh
Last active September 22, 2024 03:52
Clean Ubuntu Install - Machine Learning setup
# Install Ubuntu 22.04
sudo apt-get update
sudo apt-get upgrade -y
# Install ssh, curl, git, htop
sudo apt install openssh-server
sudo apt install curl git htop zstd
# Install CUDA toolkit 12.4 drivers
https://developer.nvidia.com/cuda-downloads
@lucataco
lucataco / safeFlan.py
Created January 26, 2023 20:24
Safetensors speed comparison with flan-t5-large
import os
import datetime
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import torch
sf_filename = "./model.safetensors"
pt_filename = hf_hub_download("google/flan-t5-large", filename="pytorch_model.bin")
@lucataco
lucataco / safeBloom.py
Created January 26, 2023 19:45
Safetensors speed comparison with bloom-560M
import os
import datetime
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import torch
sf_filename = hf_hub_download("bigscience/bloom-560m", filename="model.safetensors")
pt_filename = hf_hub_download("bigscience/bloom-560m", filename="pytorch_model.bin")