Skip to content

oshea00/pytorchcuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytorch and Huggingface Experiments

I'm running these on WSL2 on Windows 11 with a NVidia GEForce card and drivers.

WSL2 Ubuntu has a special CUDA Toolkit install available here. This installer avoids overwriting the /usr/lib/wsl/lib/libcuda.so file setup by the NVidia GeForce driver installer.

Scripts

  • train.py and inference.py

    • straight from the PyTorch getting started. Shows how to save and load a trained model.
  • transformerpipeline.py

    • demos the pipeline "helper" swiss army knife.
  • tensors.py

    • basic tensor operations and cuda
  • Microsoft phi 1.5 SML (Small Language Model) capable of non-trivial code/language one-shot results that can be run on a laptop/phone. Example run on RTX3050Ti Laptop GPU takes 8 seconds.

  • Microsoft phi 2 SML (Small Language Model) capable of non-trivial code/language one-shot results that can be run on a laptop/phone. Example run on RTX3050Ti Laptop GPU takes 88 seconds.

  • Langgraph

    • graphchat.py basic chat example
    • graphconditional.py conditional tool execution
    • visgraph.py visualization of graph functions

About

Experiments with PyTorch, Huggingface and Cuda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published