|
32 | 32 | "metadata": { |
33 | 33 | "tags": [] |
34 | 34 | }, |
35 | | - "outputs": [ |
36 | | - { |
37 | | - "name": "stderr", |
38 | | - "output_type": "stream", |
39 | | - "text": [ |
40 | | - "\n", |
41 | | - "A module that was compiled using NumPy 1.x cannot be run in\n", |
42 | | - "NumPy 2.0.1 as it may crash. To support both 1.x and 2.x\n", |
43 | | - "versions of NumPy, modules must be compiled with NumPy 2.0.\n", |
44 | | - "Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.\n", |
45 | | - "\n", |
46 | | - "If you are a user of the module, the easiest solution will be to\n", |
47 | | - "downgrade to 'numpy<2' or try to upgrade the affected module.\n", |
48 | | - "We expect that some modules will need time to support NumPy 2.\n", |
49 | | - "\n", |
50 | | - "Traceback (most recent call last): File \"<frozen runpy>\", line 198, in _run_module_as_main\n", |
51 | | - " File \"<frozen runpy>\", line 88, in _run_code\n", |
52 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel_launcher.py\", line 18, in <module>\n", |
53 | | - " app.launch_new_instance()\n", |
54 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/traitlets/config/application.py\", line 1075, in launch_instance\n", |
55 | | - " app.start()\n", |
56 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/kernelapp.py\", line 739, in start\n", |
57 | | - " self.io_loop.start()\n", |
58 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/tornado/platform/asyncio.py\", line 205, in start\n", |
59 | | - " self.asyncio_loop.run_forever()\n", |
60 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/asyncio/base_events.py\", line 645, in run_forever\n", |
61 | | - " self._run_once()\n", |
62 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/asyncio/base_events.py\", line 1999, in _run_once\n", |
63 | | - " handle._run()\n", |
64 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/asyncio/events.py\", line 88, in _run\n", |
65 | | - " self._context.run(self._callback, *self._args)\n", |
66 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/kernelbase.py\", line 545, in dispatch_queue\n", |
67 | | - " await self.process_one()\n", |
68 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/kernelbase.py\", line 534, in process_one\n", |
69 | | - " await dispatch(*args)\n", |
70 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/kernelbase.py\", line 437, in dispatch_shell\n", |
71 | | - " await result\n", |
72 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/ipkernel.py\", line 362, in execute_request\n", |
73 | | - " await super().execute_request(stream, ident, parent)\n", |
74 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/kernelbase.py\", line 778, in execute_request\n", |
75 | | - " reply_content = await reply_content\n", |
76 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/ipkernel.py\", line 449, in do_execute\n", |
77 | | - " res = shell.run_cell(\n", |
78 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/ipykernel/zmqshell.py\", line 549, in run_cell\n", |
79 | | - " return super().run_cell(*args, **kwargs)\n", |
80 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3098, in run_cell\n", |
81 | | - " result = self._run_cell(\n", |
82 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3153, in _run_cell\n", |
83 | | - " result = runner(coro)\n", |
84 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/async_helpers.py\", line 128, in _pseudo_sync_runner\n", |
85 | | - " coro.send(None)\n", |
86 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3365, in run_cell_async\n", |
87 | | - " has_raised = await self.run_ast_nodes(code_ast.body, cell_name,\n", |
88 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3610, in run_ast_nodes\n", |
89 | | - " if await self.run_code(code, result, async_=asy):\n", |
90 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/IPython/core/interactiveshell.py\", line 3670, in run_code\n", |
91 | | - " exec(code_obj, self.user_global_ns, self.user_ns)\n", |
92 | | - " File \"/var/folders/1s/z56f8rw50755xx8fxp2969r477wmss/T/ipykernel_48096/575015278.py\", line 7, in <module>\n", |
93 | | - " import torch\n", |
94 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/__init__.py\", line 1477, in <module>\n", |
95 | | - " from .functional import * # noqa: F403\n", |
96 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/functional.py\", line 9, in <module>\n", |
97 | | - " import torch.nn.functional as F\n", |
98 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/nn/__init__.py\", line 1, in <module>\n", |
99 | | - " from .modules import * # noqa: F403\n", |
100 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/nn/modules/__init__.py\", line 35, in <module>\n", |
101 | | - " from .transformer import TransformerEncoder, TransformerDecoder, \\\n", |
102 | | - " File \"/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/nn/modules/transformer.py\", line 20, in <module>\n", |
103 | | - " device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),\n", |
104 | | - "/Users/masonge/Documents/PET/venv/lib/python3.12/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)\n", |
105 | | - " device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),\n" |
106 | | - ] |
107 | | - } |
108 | | - ], |
| 35 | + "outputs": [], |
109 | 36 | "source": [ |
110 | 37 | "import sys\n", |
111 | 38 | "from pathlib import Path\n", |
|
203 | 130 | "metadata": {}, |
204 | 131 | "outputs": [ |
205 | 132 | { |
206 | | - |
207 | 133 | "data": { |
208 | 134 | "text/html": [ |
209 | 135 | "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n", |
|
699 | 625 | }, |
700 | 626 | "metadata": {}, |
701 | 627 | "output_type": "display_data" |
702 | | - |
703 | 628 | } |
704 | 629 | ], |
705 | 630 | "source": [ |
|
6051 | 5976 | "name": "python", |
6052 | 5977 | "nbconvert_exporter": "python", |
6053 | 5978 | "pygments_lexer": "ipython3", |
6054 | | - "version": "3.12.9" |
| 5979 | + "version": "3.11.7" |
6055 | 5980 | }, |
6056 | 5981 | "nbsphinx": { |
6057 | 5982 | "orphan": true |
|
0 commit comments