{"id":17280,"date":"2025-04-18T23:42:35","date_gmt":"2025-04-18T15:42:35","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/17280.html"},"modified":"2025-04-18T23:42:35","modified_gmt":"2025-04-18T15:42:35","slug":"linux%e6%9c%8d%e5%8a%a1%e5%99%a8mamba2%e5%ae%89%e8%a3%85%e5%8f%8aexample%e8%bf%90%e8%a1%8c%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/17280.html","title":{"rendered":"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898"},"content":{"rendered":"<p>Mamba \u4ece\u53d1\u8868\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u6bb5\u65f6\u95f4\u4e86\uff0c\u5148\u524d\u7684Mamba\u4ee3\u7801\u6709\u4e9b\u5730\u65b9\u4e0d\u5b8c\u5584\u6216\u8005\u9700\u8981\u5bf9\u6e90\u7801\u505a\u4e9b\u4fee\u6539\u540e\u7f16\u8bd1\uff0c\u6700\u8fd1\u53ef\u80fd\u9700\u8981\u7528\u5230Mamba\uff0c\u53d1\u73b0\u4e4b\u524d\u5b9e\u73b0\u7684Vision Mamba\u5757\uff0c\u6ce8\u91ca\u6389\u4e86\u4e00\u4e9b\u6e90\u7801\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u901f\u5ea6\u4e0b\u964d\uff0c\u7136\u540e\u5b98\u65b9\u5b9e\u73b0\u4e86Mamba2\uff0c\u8fd9\u91cc\u5c1d\u8bd5\u5b89\u88c5\uff0c\u505a\u4e00\u4e9b\u8bb0\u5f55\uff0c\u9632\u6b62\u670d\u52a1\u5668\u91cd\u7f6e\ud83e\udee4<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"CUDA%20%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">CUDA \u5b89\u88c5<\/p>\n<p id=\"Conda%20%E5%88%9B%E5%BB%BA%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:80px\">Conda \u521b\u5efa\u73af\u5883<\/p>\n<p id=\"Pytorch%20%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">Pytorch \u5b89\u88c5<\/p>\n<p id=\"causal-conv1d%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">causal-conv1d\u5b89\u88c5<\/p>\n<p id=\"Mamba%20%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">Mamba \u5b89\u88c5<\/p>\n<p id=\"%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3-toc\" style=\"margin-left:80px\">\u95ee\u9898\u89e3\u51b3<\/p>\n<hr id=\"hr-toc\">\n<h4 id=\"CUDA%20%E5%AE%89%E8%A3%85\">CUDA \u5b89\u88c5<\/h4>\n<p>\u5728\u5b89\u88c5\u5176\u5b83\u4e1c\u897f\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5CUDA\uff0c\u8fd9\u91cc\u53c2\u7167\u4e86 Vision Mamba \u7684\u73af\u5883\u5b89\u88c5 cuda-11.8 \u7248\u672c\uff0c<\/p>\n<p>\u76f4\u63a5\u5230 CUDA \u5b98\u7f51\u627e\u5bf9\u5e94\u7248\u672c\u5c31\u884c&nbsp;CUDA\u5b98\u7f51<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"416\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154233-680272e9a7ab2.png\" width=\"1169\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"639\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154233-680272e9e02e2.png\" width=\"1200\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"629\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154234-680272ea35f91.png\" width=\"695\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"881\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154234-680272ea56e60.png\" width=\"1200\"><\/p>\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u8fd9\u4e24\u884c\u4ee3\u7801\uff0c\u7136\u540e\u5b89\u88c5CUDA\uff0c\u7f51\u4e0a\u6709\u5f88\u591a\u6559\u7a0b\u6211\u8fd9\u91cc\u670d\u52a1\u5668\u5df2\u7ecf\u88c5\u597d\u4e86\uff0c\u4e0d\u5728\u8d58\u8ff0<\/p>\n<p>wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/11.8.0\/local_installers\/cuda_11.8.0_520.61.05_linux.run<br \/>\nsudo sh cuda_11.8.0_520.61.05_linux.run <\/p>\n<h4 id=\"Conda%20%E5%88%9B%E5%BB%BA%E7%8E%AF%E5%A2%83\" style=\"background-color:transparent\">Conda \u521b\u5efa\u73af\u5883<\/h4>\n<p>Anaconda \u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u914d\u7f6emamba\uff0c\u521b\u5efa\u5e76\u6fc0\u6d3b\uff0c\u540c\u6837\uff0c\u8fd9\u91cc\u521b\u5efapython 3.10 \u7684\u73af\u5883<\/p>\n<p>conda create -n your_env_name python=3.10.13<br \/>\nconda activate your_env_name <\/p>\n<h4 id=\"Pytorch%20%E5%AE%89%E8%A3%85\" style=\"background-color:transparent\">Pytorch \u5b89\u88c5<\/h4>\n<p>pytorch \u8fd9\u91cc\u5b89\u88c52.1.1 \u7248\u672c\uff0c\u76f4\u63a5\u8fdb\u5165\u5b98\u7f51\u53bb\u627e\u76f8\u5e94\u547d\u4ee4\u5c31\u884c\uff0cPyTorch\u5b98\u7f51<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.7k\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf42\u6b21\u3002Mamba \u4ece\u53d1\u8868\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u6bb5\u65f6\u95f4\u4e86\uff0c\u5148\u524d\u7684Mamba\u4ee3\u7801\u6709\u4e9b\u5730\u65b9\u4e0d\u5b8c\u5584\u6216\u8005\u9700\u8981\u5bf9\u6e90\u7801\u505a\u4e9b\u4fee\u6539\u540e\u7f16\u8bd1\uff0c\u6700\u8fd1\u53ef\u80fd\u9700\u8981\u7528\u5230Mamba\uff0c\u53d1\u73b0\u4e4b\u524d\u5b9e\u73b0\u7684Vision Mamba\u5757\uff0c\u6ce8\u91ca\u6389\u4e86\u4e00\u4e9b\u6e90\u7801\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u901f\u5ea6\u4e0b\u964d\uff0c\u7136\u540e\u5b98\u65b9\u5b9e\u73b0\u4e86Mamba2\uff0c\u8fd9\u91cc\u5c1d\u8bd5\u5b89\u88c5\uff0c\u505a\u4e00\u4e9b\u8bb0\u5f55\uff0c\u9632\u6b62\u670d\u52a1\u5668\u91cd\u7f6e\ud83e\udee4\u3002_mamba2\u5b89\u88c5<\/p>\n","protected":false},"author":2,"featured_media":17276,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[88,216,81,50,86],"topic":[],"class_list":["post-17280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-conda","tag-pip","tag-python","tag-50","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/17280.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.7k\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf42\u6b21\u3002Mamba \u4ece\u53d1\u8868\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u6bb5\u65f6\u95f4\u4e86\uff0c\u5148\u524d\u7684Mamba\u4ee3\u7801\u6709\u4e9b\u5730\u65b9\u4e0d\u5b8c\u5584\u6216\u8005\u9700\u8981\u5bf9\u6e90\u7801\u505a\u4e9b\u4fee\u6539\u540e\u7f16\u8bd1\uff0c\u6700\u8fd1\u53ef\u80fd\u9700\u8981\u7528\u5230Mamba\uff0c\u53d1\u73b0\u4e4b\u524d\u5b9e\u73b0\u7684Vision Mamba\u5757\uff0c\u6ce8\u91ca\u6389\u4e86\u4e00\u4e9b\u6e90\u7801\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u901f\u5ea6\u4e0b\u964d\uff0c\u7136\u540e\u5b98\u65b9\u5b9e\u73b0\u4e86Mamba2\uff0c\u8fd9\u91cc\u5c1d\u8bd5\u5b89\u88c5\uff0c\u505a\u4e00\u4e9b\u8bb0\u5f55\uff0c\u9632\u6b62\u670d\u52a1\u5668\u91cd\u7f6e\ud83e\udee4\u3002_mamba2\u5b89\u88c5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/17280.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:42:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154233-680272e9a7ab2.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17280.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/17280.html\",\"name\":\"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:42:35+00:00\",\"dateModified\":\"2025-04-18T15:42:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/17280.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/17280.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17280.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/17280.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.7k\u6b21\uff0c\u70b9\u8d5e29\u6b21\uff0c\u6536\u85cf42\u6b21\u3002Mamba \u4ece\u53d1\u8868\u5230\u73b0\u5728\u5df2\u7ecf\u6709\u6bb5\u65f6\u95f4\u4e86\uff0c\u5148\u524d\u7684Mamba\u4ee3\u7801\u6709\u4e9b\u5730\u65b9\u4e0d\u5b8c\u5584\u6216\u8005\u9700\u8981\u5bf9\u6e90\u7801\u505a\u4e9b\u4fee\u6539\u540e\u7f16\u8bd1\uff0c\u6700\u8fd1\u53ef\u80fd\u9700\u8981\u7528\u5230Mamba\uff0c\u53d1\u73b0\u4e4b\u524d\u5b9e\u73b0\u7684Vision Mamba\u5757\uff0c\u6ce8\u91ca\u6389\u4e86\u4e00\u4e9b\u6e90\u7801\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8bad\u7ec3\u901f\u5ea6\u4e0b\u964d\uff0c\u7136\u540e\u5b98\u65b9\u5b9e\u73b0\u4e86Mamba2\uff0c\u8fd9\u91cc\u5c1d\u8bd5\u5b89\u88c5\uff0c\u505a\u4e00\u4e9b\u8bb0\u5f55\uff0c\u9632\u6b62\u670d\u52a1\u5668\u91cd\u7f6e\ud83e\udee4\u3002_mamba2\u5b89\u88c5","og_url":"https:\/\/www.wsisp.com\/helps\/17280.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:42:35+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418154233-680272e9a7ab2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/17280.html","url":"https:\/\/www.wsisp.com\/helps\/17280.html","name":"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:42:35+00:00","dateModified":"2025-04-18T15:42:35+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/17280.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/17280.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/17280.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u670d\u52a1\u5668Mamba2\u5b89\u88c5\u53caexample\u8fd0\u884c\u95ee\u9898"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=17280"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17280\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/17276"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=17280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=17280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=17280"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=17280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}