Coder Social home page Coder Social logo

dan's People

Contributors

cztomsik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dan's Issues

Metal broken

There's PR here and it should work but unfortunately, it fails during the metal compilation.

ggml_metal_init: allocating
ggml_metal_init: using MPS
ggml_metal_init: loading '/Users/cztomsik/Desktop/dan/zig-out/bin/ggml-metal.metal'
ggml_metal_init: error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:24:5: error: use of undeclared identifier 'assert'
    assert(k % qk == 0);
    ^
program_source:44:5: error: use of undeclared identifier 'assert'
    assert(k % qk == 0);
    ^
program_source:84:9: error: invalid type 'const constant int64_t &' (aka 'const constant long &') for buffer declaration
        constant   int64_t & ne00,
        ^~~~~~~~~~~~~~~~~~~~~~~~~
program_source:84:20: note: type 'int64_t' (aka 'long') cannot be used in buffer pointee type
        constant   int64_t & ne00,
                   ^
program_source:126:9: error: invalid type 'const constant int64_t &' (aka 'const constant long &') for buffer declaration
        constant   int64_t & ne00,
        ^~~~~~~~~~~~~~~~~~~~~~~~~
program_source:126:20: note: type 'int64_t' (aka 'long') cannot be used in buffer pointee type
        constant   int64_t & ne00,
                   ^
program_source:127:9: error: invalid type 'const constant int64_t &' (aka 'const constant long &') for buffer declaration
        constant   int64_t & ne01,

It's super-weird because I'm using exactly the same code as the original C++ impl, and it's compiled in runtime so it should work.

I've also checked with DYLD_PRINT_LIBRARIES=1 and they are the same...

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.