Giter Site home page Giter Site logo

carefree-core's Introduction

Meta framework for Deep Learning frameworks with PyTorch.

Getting Started

carefree-core requires:

  • Python 3.8 or higher.
  • A suitable PyTorch installation.

carefree-core is not meant to be installed, but rather as a 'portable' package that integrates into your own project.

To use this library, follow the instructions below:

  • Copy the core folder to somewhere in your project.
  • Copy the install_requires listed in setup.py into your own setup.py.
  • Copy the setup.cfg file into your own project, if you want to follow the mypy style.

And that's all - the codes are yours, modify them as you wish!

Introductions

toolkit package

This package is meant to hold the common classes / functions that are used across the whole library.

flow package

This package is a lightweight package for building arbitray workflows, here are the highlights:

  • Async: async is by design.
  • Parallel: nodes can be executed in parallel.
  • Powerful: complex locks / logics / dependencies can be handled.
    • You can even perform a loop with loop backs in the workflow!
  • Automated:
    • All nodes, as well as the workflow itself, can be automatically turned into RESTful APIs.
    • Detailed documentation of the design / nodes / workflow / ... can be automatically generated, which makes this package and its extended versions agent-friendly.
      • That is to say, you can build a GPT-agent on top of this package by simply feed the auto-generated documentation to it. After which, you can interact with the agent via natural language and it will tell you how to build the workflow you want (it may even be able to give you the final workflow JSON directly)!
      • We even support auto-generating a 'RAG friendly' version of the documentation, which makes Retrieval-Augmented Generation easier. This version uses __RAG__ as the special separator, so you can chunk the documentation into suitable parts for RAG.
  • Extensible: you can easily extend the package with your own nodes.
  • Serializable: the workflow can be serialized into / deserialized from a single JSON file.
  • Human Readable: the workflow JSON file is human readable and easy to understand.
  • Lightweight: the package is lightweight (core implementation is ~500 lines of code in a single file core/flow/core.py) and easy to use.

learn package

This package is the 'main' package of the PyTorch framework, here are some main design principles:

  • Data: Will use torch.utils.data.DataLoader as the data loader.
  • Model: Will be split into module and model:
    • module is the key part of the Model, and should be self-contained at inference stage.
    • model is the wrapper of module, and should contain the training / evaluation / ... logic.
  • Trainer: Will use the accelerate library.
  • Training Abstraction: Will use TrainStep for fine-grained control.

License

carefree-core is MIT licensed, as found in the LICENSE file.

carefree-core's People

Contributors

carefree0910 avatar

Stargazers

 avatar  avatar

Watchers

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