Title: Run i-Code-v3 on CPU, Solve GPU VRAM problem! · Issue #89 · microsoft/i-Code · GitHub
Open Graph Title: Run i-Code-v3 on CPU, Solve GPU VRAM problem! · Issue #89 · microsoft/i-Code
X Title: Run i-Code-v3 on CPU, Solve GPU VRAM problem! · Issue #89 · microsoft/i-Code
Description: I will appreciate it to provide the support or apply the following changes to be able run the i-Code-v3 on CPU. the following changes need to apply: /core/common/utils.py --> change np.int to np.int32 in the following files: /core/models...
Open Graph Description: I will appreciate it to provide the support or apply the following changes to be able run the i-Code-v3 on CPU. the following changes need to apply: /core/common/utils.py --> change np.int to np.in...
X Description: I will appreciate it to provide the support or apply the following changes to be able run the i-Code-v3 on CPU. the following changes need to apply: /core/common/utils.py --> change np.int to np...
Opengraph URL: https://github.com/microsoft/i-Code/issues/89
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Run i-Code-v3 on CPU, Solve GPU VRAM problem!","articleBody":"I will appreciate it to provide the support or apply the following changes to be able run the i-Code-v3 on CPU.\r\n\r\nthe following changes need to apply:\r\n/core/common/utils.py --> change np.int to np.int32\r\n\r\nin the following files:\r\n/core/models/model_module_infer.py \r\n/core/models/ddim/ddim.py\r\n/core/models/latent_diffusion/diffusion_unet.py\r\n\r\nshould add the following code:\r\ndevice = torch.device(\"cuda\") if torch.cuda.is_available() else torch.device(\"cpu\")\r\n\r\nand change \".cuda( )\" to \".to(device)\"\r\n\r\nby applying the above changes I could run the i-Code-V3 on the CPU, but fp16 was not supported yet (on CPU mode). I appreciate it to support Running FP32 and FP16 on CPU.\r\n","author":{"url":"https://github.com/HFarkhari","@type":"Person","name":"HFarkhari"},"datePublished":"2023-07-17T16:31:12Z","url":"https://github.com/microsoft/i-Code/issues/89"}
| 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:a21e444d-0d53-2d47-18ac-bb1713fe6fdc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D098:199E93:8F2884:C5CA77:6B05B24C |
| html-safe-nonce | e3e4e309c918e206782cb6dfce2cef40994ff991d1ee475847d74cc4b05177fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDk4OjE5OUU5Mzo4RjI4ODQ6QzVDQTc3OjZCMDVCMjRDIiwidmlzaXRvcl9pZCI6IjkxMDIxOTE2NDA5Mjc2NDYyODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6cc9c073cd72d514c44b72b8c1d115830603a129f442b5503e5fe701de92e430 |
| hovercard-subject-tag | issue:1808137966 |
| 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/89/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac44bfb068cd143a7d89c2716c03a6d75c5de61e3cafcdb4d50be547a2a94eaa/microsoft/i-Code/issues/89 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac44bfb068cd143a7d89c2716c03a6d75c5de61e3cafcdb4d50be547a2a94eaa/microsoft/i-Code/issues/89 |
| og:image:alt | I will appreciate it to provide the support or apply the following changes to be able run the i-Code-v3 on CPU. the following changes need to apply: /core/common/utils.py --> change np.int to np.in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HFarkhari |
| 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 | full |
| 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