Git Product home page Git Product logo

hf-scripts's Introduction

license language
agpl-3.0
en

scripts

Personal scripts to automate some tasks mostly using huggingface_hub.
Feel free to send in PRs or use this code however you'd like.
GitHub mirror

For GitHub: Would recommend creating pull requests and discussions on the offical huggingface repo

existing files

work in progress/not tested (ordered by priority)

  • Easy exl2 quants
    • Add custom safetensors shard size.
    • Allow using finegrained tokens to login scripts

other recommended stuff

usage

  • Auto EXL2 HF upload

    • This script is designed to automate the process of quantizing models to EXL2 and uploading them to the HF Hub as seperate branches. This is both available to run on Windows and Linux. You will be required to be logged in to HF Hub. If you are not logged in, you will need a WRITE token.
    • Example repo
  • EXL2 Local Quants

    • Easily creates environment to quantize models to exl2 to your local machine. Supports both Windows and Linux.
  • Upload folder to repo

    • Uploads user specified folder to specified repo, can create private repos too. Not the same as git commit and push, instead uploads any additional files. This is more of a practice for me than for actual usage.
  • Manage branches

    • Run script and follow prompts. You will be required to be logged in to HF Hub. If you are not logged in, you will need a WRITE token. You can get one in your HuggingFace settings. Colab and Kaggle secret keys are supported.
  • EXL2 Single Quant

    • Allows you to quantize to exl2 using colab. This version creates a exl2 quant to upload to private repo. Only 7B tested on colab.
  • Download models (oobabooga)

    • To use the script, open a terminal and run 'python download-model.py USER/MODEL:BRANCH'. There's also a '--help' flag to show the available arguments. To download from private repositories, make sure to login using 'huggingface-cli login' or (not recommended) HF_TOKEN environment variable.

extras

  • HF login snippet
    • The login method that I wrote to make fetching the token better.
  • HF login snippet kaggle
    • Same as above but for cloud ipynb environments like Colab and Kaggle (Kaggle secret support)

hf-scripts's People

Contributors

anthonyg5005 avatar

Watchers

 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.