Coder Social home page Coder Social logo

nn-experiments's Introduction

Personal testbed and collection of utilities for torch-based neural net experiments.

Folder structure:

  • src/ and test/ is mostly the library part. There is a lot of work on torch Datasets, some of it is obsoleted by torch's DataPipes library which i do NOT yet use.
  • scripts/ contains a couple of different experiments. The files are pretty similar in structure and vary in dataset, model and training details. Most of it superseded by:
  • experiments/ contains new experiments based on yaml file descriptions. It's an opinionated wrapper around my Trainer class that can also run permutations of parameters and log the results.
  • notebooks-cleaned/ contains the cleaned (no output) version of all the jupyter notebooks used for experimentation. Some of them are useful, some of them are collections of crap from middle-of-the-night trial-and-error sessions.

Experiments from the experiments/ folder are run in project root with:

python exp.py experiments/the-name.yml run

Create a github issue if you are interested in playing with it and need some documentation.

๐Ÿ“ Logbooks

experiments/logs/ contains logbooks of some experiments

CLIPig 2

After the roaring success of CLIPig (ha ha) i started a version that is configured through a graphical UI instead of yaml files.

CLIPig screenshot

Run it with

python src/clipig

๐Ÿค— (Small) Language Model chat

There's a small tool to put prompts into the huggingface language generators using a browser, which is much nicer than a command line interface.

python scripts/chat_lm_browser.py [--model <hf-model-name>]
# and visit http://127.0.0.1:8000

I'm currently having fun with

python scripts/chat_lm_browser.py \
    --model microsoft/phi-1_5
    --device auto
    --bits 8

bits reduces the precision of the weights (doc) which reduces memory requirements and let's you actually put some of the models on a normal GPU.

nn-experiments's People

Contributors

defgsus avatar

Stargazers

Dmitry Gavrilyev avatar

Watchers

 avatar  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.