Code Monkey home page Code Monkey logo

cmvm's People

Contributors

hansemandse avatar

cmvm's Issues

Generate reconfigurable hardware

The constant matrix-vector multiplication hardware currently produced by the tool is highly efficient, yet it provides no flexibility in terms of changing weights at runtime. It is an interesting design point to consider similar circuits with this functionality available.

We expect the overheads from barrel shifters and control and storage logic to be rather significant, but it may still be possible to achieve higher area efficiency than with a fully exact, rolled-out matrix multiplication unit.

For this implementation to work, the tool needs to be able to encode factors into a format that is understandable by the hardware with minimal overheads. One possible solution for this is a combined (sign, shift amount) format, in which shift amount is a two's complement integer. It is not yet well-established how to handle special cases of $\pm0.0$ and $\pm1.0$ factors in this format.

Speed up decomposition

The current algorithm for decomposing matrices is rather slow. With the help of the time function included in util.scala, the source of this long processing duration has been isolated to the generateMatchings function. This function currently handles a slice row-wise and recursively selects one factor at a time to add. Perhaps there are alternative strategies to this selection that perform better? The original paper says "quantized matching pursuit," but it is not clear what exactly this refers to.

Orthogonally, we observe that the decomposition algorithm's independent treatment of slices lends itself very well to parallelization. Perhaps simply making the main function multi-threaded can give rise to sufficient performance?

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.