Giter Club home page Giter Club logo

Comments (3)

hcye2022 avatar hcye2022 commented on June 26, 2024

After reinstalling pytorch version '2.3.0+cu121' the error became:

python3.10/site-packages/torch/lib/libc10_cuda.so: undefined symbol: _ZNK3c109Allocator18is_simple_data_ptrERKNS_7DataPtrE

from mojo.

hcye2022 avatar hcye2022 commented on June 26, 2024

After reinstalling transformers '4.41.1' the error became

$ mojo roberta.mojo 
Compiling model.    
Done!
Unhandled exception caught during execution: invalid syntax (base_events.py, line 296)
mojo: error: execution exited with a non-zero result: 1

It came from the line

var transformers = Python.import_module("transformers")

Even though I can import transformers in a python3 session.

from mojo.

scottamain avatar scottamain commented on June 26, 2024

Sorry for the delay @hcye2022 and thanks for reporting this!

We published a new version of this page on Friday and I believe it solves this issue:
https://docs.modular.com/max/mojo/get-started

Please reopen this if you still get this error.

Also check out this new code example that is the basis for the tutorial:
https://github.com/modularml/max/tree/main/examples/inference/bert-mojo-torchscript

from mojo.

Related Issues (20)

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.