Title: CoDi : CUDA ran out of memory while trying to do inference tasks · Issue #75 · microsoft/i-Code · GitHub
Open Graph Title: CoDi : CUDA ran out of memory while trying to do inference tasks · Issue #75 · microsoft/i-Code
X Title: CoDi : CUDA ran out of memory while trying to do inference tasks · Issue #75 · microsoft/i-Code
Description: I was trying to run the demo notebook on Nvidia A100 80 GB. While trying to load the model from checkpoint, I am facing this issue: ####################### Running in eps mode ####################### making attention of type 'vanilla' wi...
Open Graph Description: I was trying to run the demo notebook on Nvidia A100 80 GB. While trying to load the model from checkpoint, I am facing this issue: ####################### Running in eps mode #####################...
X Description: I was trying to run the demo notebook on Nvidia A100 80 GB. While trying to load the model from checkpoint, I am facing this issue: ####################### Running in eps mode #####################...
Opengraph URL: https://github.com/microsoft/i-Code/issues/75
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CoDi : CUDA ran out of memory while trying to do inference tasks","articleBody":"I was trying to run the demo notebook on Nvidia A100 80 GB. While trying to load the model from checkpoint, I am facing this issue:\r\n#######################\r\nRunning in eps mode \r\n#######################\r\n\r\nmaking attention of type 'vanilla' with 512 in_channels\r\nWorking with z of shape (1, 4, 32, 32) = 4096 dimensions.\r\nmaking attention of type 'vanilla' with 512 in_channels\r\nLoad pretrained weight from ['CoDi_encoders.pth', 'CoDi_text_diffuser.pth', 'CoDi_audio_diffuser_m.pth', 'CoDi_video_diffuser_8frames.pth']\r\n\r\n**RuntimeError: CUDA out of memory. Tried to allocate 64.00 MiB (GPU 0; 23.70 GiB total capacity; 17.10 GiB already allocated; 3.56 MiB free; 17.49 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF**\r\n\r\nCan you let me know how to solve this issue ?\r\n\r\nI checked with nvidia-smi to see if there were any other running processes, but there was nothing .\r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 515.76 Driver Version: 515.76 CUDA Version: 11.7 |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\r\n| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\r\n| | | MIG M. |\r\n|===============================+======================+======================|\r\n| 0 NVIDIA A100 80G... On | 00000000:9E:00.0 Off | 0 |\r\n| N/A 33C P0 46W / 300W | 0MiB / 81920MiB | 0% Default |\r\n| | | Disabled |\r\n+-------------------------------+----------------------+----------------------+\r\n \r\n+-----------------------------------------------------------------------------+\r\n| Processes: |\r\n| GPU GI CI PID Type Process name GPU Memory |\r\n| ID ID Usage |\r\n|=============================================================================|\r\n| No running processes found |\r\n+-----------------------------------------------------------------------------+","author":{"url":"https://github.com/PHOENIXFURY007","@type":"Person","name":"PHOENIXFURY007"},"datePublished":"2023-07-07T09:53:07Z","url":"https://github.com/microsoft/i-Code/issues/75"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e28d37df-1992-096a-83c8-08b0033af9bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B932:2508EA:3C2B42:54A898:6B05B497 |
| html-safe-nonce | 345ee1bb2cd715c59565e720354c509dce0aa12a315dde71007b81ae1d8ee4c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTMyOjI1MDhFQTozQzJCNDI6NTRBODk4OjZCMDVCNDk3IiwidmlzaXRvcl9pZCI6IjIwODQ3NTg5MTY2MTI2MDA5ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 101c1910cd9c687cc653c46e208194144125b47256b8d97171661ffc377d184c |
| hovercard-subject-tag | issue:1793203313 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/i-Code/75/issue_layout |
| twitter:image | https://opengraph.githubassets.com/402d2988c8d0558d803c8fb6e1145b74a28fd19fdb22eff3287bcfbcaa25081f/microsoft/i-Code/issues/75 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/402d2988c8d0558d803c8fb6e1145b74a28fd19fdb22eff3287bcfbcaa25081f/microsoft/i-Code/issues/75 |
| og:image:alt | I was trying to run the demo notebook on Nvidia A100 80 GB. While trying to load the model from checkpoint, I am facing this issue: ####################### Running in eps mode #####################... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PHOENIXFURY007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 106bb568ff143beb0075344f71b9097568f02130f2e85ac7ca2a4b82efb00b47 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/i-Code git https://github.com/microsoft/i-Code.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 575603626 |
| octolytics-dimension-repository_nwo | microsoft/i-Code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 575603626 |
| octolytics-dimension-repository_network_root_nwo | microsoft/i-Code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b207ef4132553ef1428fae8ca470a518d651ce07 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width