Comments (3)
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.
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.
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)
- [BUG] errors on install HOT 2
- [Feature Request] [proposal] Fast but unsafe version of atol
- [BUG] Install Issue--Infected file warning (from Intego/Virusbarrier) HOT 2
- [BUG] Install Issue: Failed to run Script (mojo format) HOT 2
- [BUG] crash when attempting to use MAC mps when wrapping PyTorch
- [BUG] Possible SIMD[DType.bool, n] tested for truth in the stdlib where n > 1 HOT 5
- [BUG] Parser crash when a overload for a trait method is added
- [BUG] `Tensor` initialised from a list with wrong type shows weird behaviour
- [BUG] Parser crash when `moveinit` with wrong argument convention is defined while using `@value`
- [BUG] LSP & Mojo crashes when using Python.evaluate in a certain way HOT 4
- [Feature Request] [stdlib] [proposal] Add comp time `SIMD` range constructor
- [Feature Request] [stdlib] Add `assert_aborts()`
- Beğenilen
- [Modular CLI] Include mojo version in Max --version
- [BUG] Error output when using AOT mode but not JIT mode to run `llama3.mojo` HOT 1
- [BUG] Error output when using AOT mode but not JIT mode to run llama3.mojo
- [BUG] Error output when using AOT mode but not JIT mode to run `llama3.mojo`
- [BUG] Functions cannot be parsed during debugging.
- [Docs] Vectorize docs are outdated HOT 1
- [BUG] `String.removesuffix("")` removes entire string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.