{"id":738,"date":"2023-09-04T23:27:59","date_gmt":"2023-09-04T23:27:59","guid":{"rendered":"https:\/\/sciencesetrecherches.eu\/?p=738"},"modified":"2023-09-10T13:11:29","modified_gmt":"2023-09-10T13:11:29","slug":"comment-installer-llama-ia-sur-son-pc","status":"publish","type":"post","link":"https:\/\/sciencesetrecherches.eu\/?p=738","title":{"rendered":"Comment installer LLama IA sur son PC"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dans cette section je ne d\u00e9crirais que l&#8217;installation de LLAMA sous windows, cependant vous avez le lien du site web pour d&#8217;autres installations.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1036\" style=\"aspect-ratio: 1920 \/ 1036;\" width=\"1920\" controls src=\"https:\/\/sciencesetrecherches.eu\/wp-content\/uploads\/2023\/09\/VID_20230910_150854.mp4\"><\/video><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1034\" style=\"aspect-ratio: 1920 \/ 1034;\" width=\"1920\" controls src=\"https:\/\/sciencesetrecherches.eu\/wp-content\/uploads\/2023\/09\/Installation_alpca_llama.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=windows\">https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=windows<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"windows\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=windows\">Windows<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-install-visual-studio\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=step-1-install-visual-studio\">Step 1. Install Visual Studio<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On windows, you need to install Visual Studio before installing Dalai.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Press the button below to visit the Visual Studio downloads page and download:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\">Download Microsoft Visual Studio<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IMPORTANT!!!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When installing Visual Studio, make sure to check the 3 options as highlighted below:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Python development<\/li>\n\n\n\n<li>Node.js development<\/li>\n\n\n\n<li>Desktop development with C++<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cocktailpeanut.github.io\/dalai\/vs.png\" alt=\"vs.png\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-21-install-models-1\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=step-21-install-models-1\">Step 2.1. Install models<\/a><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>IMPORTANT<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows, make sure to run all commands in <strong>cmd<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DO NOT run in <strong>powershell<\/strong>. Powershell has unnecessarily strict permissions and makes the script fail silently.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Currently supported engines are <code>llama<\/code> and <code>alpaca<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-alpaca\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=install-alpaca\">Install alpaca<\/a><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To download alpaca models. Open your <code>cmd<\/code> application and enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npx dalai alpaca install 7B<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"add-llama-models-1\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=add-llama-models-1\">Add llama models<\/a><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To download llama models. Open your <code>cmd<\/code> application and enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npx dalai llama install 7B<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or to download multiple models:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npx dalai llama install 7B 13B<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-22-troubleshoot-optional\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=step-22-troubleshoot-optional\">Step 2.2. Troubleshoot (optional)<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case above steps fail, try installing Node.js and Python separately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install Python:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.python.org\/ftp\/python\/3.10.10\/python-3.10.10-embed-amd64.zip\">Download Python<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install Node.js &gt;= 18:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/nodejs.org\/en\/download\/\">Download Node.js<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After both have been installed, open powershell and type <code>python<\/code> to see if the application exists. And also type <code>node<\/code> to see if the application exists as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you&#8217;ve checked that they both exist, try again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-run-web-ui-1\"><a href=\"https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=step-3-run-web-ui-1\">Step 3. Run Web UI<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After everything has been installed, run the following command to launch the web UI server (Make sure to run in <code>cmd<\/code> and not powershell!):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npx dalai serve<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and open <a href=\"http:\/\/localhost:3000\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/localhost:3000<\/a> in your browser. Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dans cette section je ne d\u00e9crirais que l&#8217;installation de LLAMA sous windows, cependant vous avez le lien du site web pour d&#8217;autres installations. https:\/\/cocktailpeanut.github.io\/dalai\/#\/?id=windows Windows Step 1. Install Visual Studio On windows, you need to install Visual Studio before installing Dalai. Press the button below to visit the Visual Studio downloads page and download: Download [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":758,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"video","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[40,38,31,29,30],"tags":[42,34,32,41,43],"series":[],"class_list":["post-738","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category-alpaca","category-dalai-ia","category-gpt","category-ia","category-intelligence-artificielle","tag-alpaca","tag-gpt","tag-ia","tag-llama","tag-openai","post_format-post-format-video"],"_links":{"self":[{"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/posts\/738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=738"}],"version-history":[{"count":2,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/posts\/738\/revisions"}],"predecessor-version":[{"id":775,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/posts\/738\/revisions\/775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=\/wp\/v2\/media\/758"}],"wp:attachment":[{"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=738"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/sciencesetrecherches.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}