{"id":2954,"date":"2024-12-12T17:31:18","date_gmt":"2024-12-12T08:31:18","guid":{"rendered":"https:\/\/technologyagency.net\/wordpress\/?p=2954"},"modified":"2024-12-12T17:36:30","modified_gmt":"2024-12-12T08:36:30","slug":"llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/","title":{"rendered":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u6e96\u5099<\/h2>\n\n\n\n<p>\u4e0b\u8a18\u3001URL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089\u3001\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u3001\u300cSpecify custom URL\u300d\u3092\u5165\u624b\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.llama.com\">https:\/\/www.llama.com<\/a><\/p>\n\n\n\n<p>\u524d\u56de\u3001<a href=\"https:\/\/technologyagency.net\/wordpress\/2023\/07\/28\/llama2%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/\">Llama2\u3092\u52d5\u304b\u3057\u3066\u307f\u308b<\/a>\u3067Llama2\u3092\u52d5\u304b\u3057\u305f\u304c\u3001\u4eca\u56de\u306fLlama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"pip install llama-stack\nllama model list\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">pip<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">llama-stack<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">llama<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">model<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">list<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8868\u793a\u3055\u308c\u305f\u30ea\u30b9\u30c8\u304b\u3089\u300cLlama-3.2-1B-Instruct\u300d\u7b49\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30e2\u30c7\u30eb\u540d\u3092MODEL_ID\u306b\u6307\u5b9a\u3057\u3066\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"llama model download --source meta --model-id MODEL_ID\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">llama<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">model<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">download<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--source<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">meta<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--model-id<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">MODEL_ID<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5b9f\u884c\u4e2d\u3001\u4e0b\u8a18\u306e\u69d8\u306b\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u4e8b\u524d\u306b\u5165\u624b\u3057\u305f\u300cSpecify custom URL\u300d\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"Please provide the signed URL for model Llama-3.2-1B you received via email after visiting https:\/\/www.llama.com\/llama-downloads\/ (e.g., https:\/\/llama3-1.llamameta.net\/*?Policy...): \" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">Please<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">provide<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">the<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">signed<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">URL<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">for<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">model<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Llama-3.2-1B<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">you<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">received<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">via<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">email<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">after<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">visiting<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">https:\/\/www.llama.com\/llama-downloads\/<\/span><span style=\"color: #D8DEE9FF\"> (e.g., <\/span><span style=\"color: #A3BE8C\">https:\/\/llama3-1.llamameta.net\/<\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #A3BE8C\">?Policy...<\/span><span style=\"color: #D8DEE9FF\">): <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u884c<\/h2>\n\n\n\n<p>torch\u7b49\u3001\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"pip install torch torchvision torchaudio --index-url https:\/\/download.pytorch.org\/whl\/cu124\npip install fairscale fire blobfile\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">pip<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">torch<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">torchvision<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">torchaudio<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--index-url<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">https:\/\/download.pytorch.org\/whl\/cu124<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">pip<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">fairscale<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">fire<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">blobfile<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5b9f\u884c\u4f8b\u3092Github\u304b\u3089Clone\u3057\u3066\u53d6\u5f97\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"git clone https:\/\/github.com\/meta-llama\/llama-models.git\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">git<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">clone<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">https:\/\/github.com\/meta-llama\/llama-models.git<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>llama-models\u306escripts\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u3063\u3066\u3044\u308bexample_chat_completion.py\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"CHECKPOINT_DIR=~\/.llama\/checkpoints\/Meta-Llama3.2-1B-Instruct\ntorchrun llama-models\/models\/scripts\/example_chat_completion.py $CHECKPOINT_DIR\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">CHECKPOINT_DIR<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #A3BE8C\">~\/.llama\/checkpoints\/Meta-Llama3.2-1B-Instruct<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">torchrun<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">llama-models\/models\/scripts\/example_chat_completion.py<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">$CHECKPOINT_DIR<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u884c\u7d50\u679c\uff08\u4f8b\uff09<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"User: what is the recipe of mayonnaise?\n\n&gt; Assistant: The classic recipe of mayonnaise! Here's a simple and traditional recipe to make mayonnaise at home:\n\n**Ingredients:**\n\n* 2 large egg yolks\n* 1 tablespoon lemon juice or vinegar (white wine, apple cider, or white distilled vinegar)\n* 1\/2 cup (120 ml) neutral-tasting oil, such as canola, grapeseed, or light olive oil\n* Salt, to taste (optional)\n\n**Instructions:**\n\n1. **Separate the egg yolks**: Crack 2 large egg yolks into a medium-sized bowl.\n2. **Whisk the egg yolks**: Whisk the egg yolks with a fork until they become light and frothy.\n3. **Add the lemon juice or vinegar**: Whisk in 1 tablespoon of lemon juice or vinegar to help stabilize the emulsion.\n4. **Slowly add the oil**: While continuously whisking the egg yolks, slowly pour in the oil in a thin, steady stream. Start with a very slow pour and gradually increase the flow as the mixture thickens.\n5. **Whisk until smooth**: Continue whisking until the mixture becomes thick, creamy, and emulsified. This should take about 5-7 minutes, depending on the temperature and whisking speed.\n6. **Season with salt (optional)**: If desired, add a pinch of salt to taste.\n7. **Taste and adjust**: Give the mayonnaise a taste and adjust the seasoning if needed.\n\n**Tips and Variations:**\n\n* **Use room temperature ingredients**: This will help the emulsion form more easily.\n* **Don't over-whisk**: Stop whisking once the mixture thickens and becomes smooth. Over-whisking can lead to a separated or broken mayonnaise.\n* **Add flavorings**: Try adding minced garlic, chopped herbs (e.g., parsley, dill, or chives), grated ginger, or other flavorings to create different variations.\n* **Use different oils**: Experiment with different oils, such as truffle oil, chili oil, or infused oils, to create unique flavor profiles.\n* **Make ahead**: Mayonnaise can be made ahead and refrigerated for up to 1 week. Give it a good stir before using.\n\n**Troubleshooting:**\n\n* **Separation**: If the mayonnaise separates, don't worry! Simply whisk in a little more oil\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">User: what is the recipe of mayonnaise?<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&gt;<\/span><span style=\"color: #616E88\"> Assistant: The classic recipe of mayonnaise! Here&#39;s a simple and traditional recipe to make mayonnaise at home:<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Ingredients:<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> 2 large egg yolks<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> 1 tablespoon lemon juice or vinegar (white wine, apple cider, or white distilled vinegar)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> 1\/2 cup (120 ml) neutral-tasting oil, such as canola, grapeseed, or light olive oil<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> Salt, to taste (optional)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Instructions:<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">1.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Separate the egg yolks<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Crack 2 large egg yolks into a medium-sized bowl.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">2.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Whisk the egg yolks<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Whisk the egg yolks with a fork until they become light and frothy.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">3.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Add the lemon juice or vinegar<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Whisk in 1 tablespoon of lemon juice or vinegar to help stabilize the emulsion.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">4.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Slowly add the oil<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: While continuously whisking the egg yolks, slowly pour in the oil in a thin, steady stream. Start with a very slow pour and gradually increase the flow as the mixture thickens.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">5.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Whisk until smooth<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Continue whisking until the mixture becomes thick, creamy, and emulsified. This should take about 5-7 minutes, depending on the temperature and whisking speed.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">6.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Season with salt (optional)<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: If desired, add a pinch of salt to taste.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">7.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Taste and adjust<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Give the mayonnaise a taste and adjust the seasoning if needed.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Tips and Variations:<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Use room temperature ingredients<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: This will help the emulsion form more easily.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Don&#39;t over-whisk<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Stop whisking once the mixture thickens and becomes smooth. Over-whisking can lead to a separated or broken mayonnaise.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Add flavorings<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Try adding minced garlic, chopped herbs (e.g., parsley, dill, or chives), grated ginger, or other flavorings to create different variations.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Use different oils<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Experiment with different oils, such as truffle oil, chili oil, or infused oils, to create unique flavor profiles.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Make ahead<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: Mayonnaise can be made ahead and refrigerated for up to 1 week. Give it a good stir before using.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Troubleshooting:<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF; font-weight: bold\">Separation<\/span><span style=\"color: #ECEFF4; font-weight: bold\">**<\/span><span style=\"color: #D8DEE9FF\">: If the mayonnaise separates, don&#39;t worry! Simply whisk in a little more oil<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">VSCODE\u3067\u5b9f\u884c\u3059\u308b\u5834\u5408<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"pip install accelerate\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">pip<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">accelerate<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>huggingface\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u3001Github\u304b\u3089transformers\u3092Clone\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"git clone https:\/\/github.com\/huggingface\/transformers.git\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">git<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">clone<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">https:\/\/github.com\/huggingface\/transformers.git<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>huggingface\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"python transformers\/src\/transformers\/models\/llama\/convert_llama_weights_to_hf.py \\\n --input_dir \/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B \\\n --model_size 1B --llama_version 3.2 \\\n --output_dir \/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B-hf\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">python<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">transformers\/src\/transformers\/models\/llama\/convert_llama_weights_to_hf.py<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--input_dir<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">\/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--model_size<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #A3BE8C\">B<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--llama_version<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">3.2<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--output_dir<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">\/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B-hf<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"import transformers\nimport torch\n\nmodel = &quot;\/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B-hf&quot;\n\npipeline = transformers.pipeline(\n    &quot;text-generation&quot;,\n    model=model,\n    torch_dtype=torch.float16,\n    device_map=&quot;auto&quot;,\n)\n\nsequences = pipeline(\n    'I have tomatoes, basil and cheese at home. What can I cook for dinner?\\n',\n    do_sample=True,\n    top_k=10,\n    num_return_sequences=1,\n    truncation = True,\n    max_length=400,\n)\n\nfor seq in sequences:\n    print(f&quot;Result: {seq['generated_text']}&quot;)\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">import<\/span><span style=\"color: #D8DEE9FF\"> transformers<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">import<\/span><span style=\"color: #D8DEE9FF\"> torch<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">model <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\/mnt\/e\/Work\/Llama3\/checkpoints\/Llama3.2-1B-hf<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">pipeline <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> transformers<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">pipeline<\/span><span style=\"color: #ECEFF4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">text-generation<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">model<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\">model<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">torch_dtype<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\">torch<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\">float16<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">device_map<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">auto<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">sequences <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">pipeline<\/span><span style=\"color: #ECEFF4\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">I have tomatoes, basil and cheese at home. What can I cook for dinner?<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">do_sample<\/span><span style=\"color: #81A1C1\">=True<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">top_k<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #B48EAD\">10<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">num_return_sequences<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">truncation<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">True<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">max_length<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #B48EAD\">400<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">for<\/span><span style=\"color: #D8DEE9FF\"> seq <\/span><span style=\"color: #81A1C1\">in<\/span><span style=\"color: #D8DEE9FF\"> sequences<\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #81A1C1\">f<\/span><span style=\"color: #A3BE8C\">&quot;Result: <\/span><span style=\"color: #EBCB8B\">{<\/span><span style=\"color: #D8DEE9FF\">seq<\/span><span style=\"color: #ECEFF4\">[<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">generated_text<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">]<\/span><span style=\"color: #EBCB8B\">}<\/span><span style=\"color: #A3BE8C\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6e96\u5099 \u4e0b\u8a18\u3001URL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089\u3001\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u3001\u300cSpecify custom URL\u300d\u3092\u5165\u624b\u3057\u3066\u304a\u304f\u3002 https:\/\/www.llama.com \u524d\u56de\u3001Llama2\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3067Llama2\u3092\u52d5\u304b &hellip; <a href=\"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[79],"class_list":["post-2954","post","type-post","status-publish","format-standard","hentry","category-python","tag-llama"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.<\/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:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.\" \/>\n<meta property=\"og:description\" content=\"\u6e96\u5099 \u4e0b\u8a18\u3001URL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089\u3001\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u3001\u300cSpecify custom URL\u300d\u3092\u5165\u624b\u3057\u3066\u304a\u304f\u3002 https:\/\/www.llama.com \u524d\u56de\u3001Llama2\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3067Llama2\u3092\u52d5\u304b &hellip; &quot;Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b&quot; \u306e\u7d9a\u304d\u3092\u8aad\u3080\" \/>\n<meta property=\"og:url\" content=\"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\/\" \/>\n<meta property=\"og:site_name\" content=\"I want to lead an easy life.\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-12T08:31:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-12T08:36:30+00:00\" \/>\n<meta name=\"author\" content=\"hide6644\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"hide6644\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"10\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"},\"author\":{\"name\":\"hide6644\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/#\\\/schema\\\/person\\\/a25355beaa102da2b2d79b00f5865b63\"},\"headline\":\"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\",\"datePublished\":\"2024-12-12T08:31:18+00:00\",\"dateModified\":\"2024-12-12T08:36:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"},\"wordCount\":35,\"commentCount\":0,\"keywords\":[\"Llama\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/\",\"url\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/\",\"name\":\"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/#website\"},\"datePublished\":\"2024-12-12T08:31:18+00:00\",\"dateModified\":\"2024-12-12T08:36:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/#\\\/schema\\\/person\\\/a25355beaa102da2b2d79b00f5865b63\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/2024\\\/12\\\/12\\\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/\",\"name\":\"I want to lead an easy life.\",\"description\":\"Technical Notes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/#\\\/schema\\\/person\\\/a25355beaa102da2b2d79b00f5865b63\",\"name\":\"hide6644\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g\",\"caption\":\"hide6644\"},\"url\":\"https:\\\/\\\/technologyagency.net\\\/wordpress\\\/author\\\/hide6644\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.","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:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\/","og_locale":"ja_JP","og_type":"article","og_title":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.","og_description":"\u6e96\u5099 \u4e0b\u8a18\u3001URL\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089\u3001\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u3001\u300cSpecify custom URL\u300d\u3092\u5165\u624b\u3057\u3066\u304a\u304f\u3002 https:\/\/www.llama.com \u524d\u56de\u3001Llama2\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3067Llama2\u3092\u52d5\u304b &hellip; \"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\" \u306e\u7d9a\u304d\u3092\u8aad\u3080","og_url":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\/","og_site_name":"I want to lead an easy life.","article_published_time":"2024-12-12T08:31:18+00:00","article_modified_time":"2024-12-12T08:36:30+00:00","author":"hide6644","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"hide6644","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"10\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/#article","isPartOf":{"@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/"},"author":{"name":"hide6644","@id":"https:\/\/technologyagency.net\/wordpress\/#\/schema\/person\/a25355beaa102da2b2d79b00f5865b63"},"headline":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b","datePublished":"2024-12-12T08:31:18+00:00","dateModified":"2024-12-12T08:36:30+00:00","mainEntityOfPage":{"@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/"},"wordCount":35,"commentCount":0,"keywords":["Llama"],"articleSection":["Python"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/","url":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/","name":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b - I want to lead an easy life.","isPartOf":{"@id":"https:\/\/technologyagency.net\/wordpress\/#website"},"datePublished":"2024-12-12T08:31:18+00:00","dateModified":"2024-12-12T08:36:30+00:00","author":{"@id":"https:\/\/technologyagency.net\/wordpress\/#\/schema\/person\/a25355beaa102da2b2d79b00f5865b63"},"breadcrumb":{"@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/technologyagency.net\/wordpress\/2024\/12\/12\/llama3%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/technologyagency.net\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Llama3\u3092\u52d5\u304b\u3057\u3066\u307f\u308b"}]},{"@type":"WebSite","@id":"https:\/\/technologyagency.net\/wordpress\/#website","url":"https:\/\/technologyagency.net\/wordpress\/","name":"I want to lead an easy life.","description":"Technical Notes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/technologyagency.net\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/technologyagency.net\/wordpress\/#\/schema\/person\/a25355beaa102da2b2d79b00f5865b63","name":"hide6644","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a5df48aece572798f5aacd2dd90331e28bd249c13f736badb5116e3d43c5d5e9?s=96&d=mm&r=g","caption":"hide6644"},"url":"https:\/\/technologyagency.net\/wordpress\/author\/hide6644\/"}]}},"_links":{"self":[{"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/posts\/2954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/comments?post=2954"}],"version-history":[{"count":29,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/posts\/2954\/revisions"}],"predecessor-version":[{"id":2992,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/posts\/2954\/revisions\/2992"}],"wp:attachment":[{"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/media?parent=2954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/categories?post=2954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technologyagency.net\/wordpress\/wp-json\/wp\/v2\/tags?post=2954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}