Git Product home page Git Product logo

hugging-face-cli-with-codespaces's Introduction

Python application test with Github Actions using devcontainers Codespaces Prebuilds

hugging-face-cli-with-codespaces

Repo that allows me to build AI tools on top of Hugging Face and OpenAI Whisper

Try out fine-tuning

Run this script

"When you use a pretrained model, you train it on a dataset specific to your task. This is known as fine-tuning, an incredibly powerful training technique. In this tutorial, you will fine-tune a pretrained model with a deep learning framework of your choice:"

Tried conda with and failed:

https://huggingface.co/docs/transformers/training

Screen Shot 2022-09-20 at 8 15 55 PM

How to do fast inference using API

Monitor GPU while Training

Use split terminal and do:

nvidia-smi -l 1 in one htop in another

Verify GPU working

  • Reference PyTorch site
  • numba -s | grep cuda
  • run python utils/verify_cuda_pytorch.py
  • run nvidia-smi should show a GPU

Notes on OS X M1

conda create -n hf python=3.9
conda activate hf
conda env config vars set CONDA_SUBDIR=osx-arm64
#install nightly
pip install -U --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
#install rust if not installed
curl — proto ‘=https’ — tlsv1.2 -sSf https://sh.rustup.rs | sh
#install via brew
brew install cmake
brew install pkg-config

References

hugging-face-cli-with-codespaces's People

Contributors

noahgift avatar alfredodeza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.