ããã¼ã«ã«AIãGUIã§CodeLlama-34B-Instruct-GGUFãåããã¦ã¿ããtext-generation-webuiã æ¦è¦ ãã¼ã«ã«LLMã§æè¿è©±é¡ã®ãCodeLlama-34B-Instruct-GGUFããtext-generation-webuiããåãããããã¼ã«ã«LLMã§ããã¡ã¤ã³ãã¥ã¼ãã³ã°ãªãã§ããã³ããæ示ã§ãããæè¦ãä½é¨ãã¦ã¿ãã ã¡ã¤ã³èªè ã¿ã¼ã²ãã ã家åºã«GPUããã人ï¼CPUã§ãè¯ããé ãï¼ æé©åã ã£ããæ£ããç解ãã§ãã¦ããã¯å¥ã¨ãã¦ãã¨ããããåãããã人 å°å ¥ããæ¸ãã®ã§ãæ¨è«ã¹ãã¼ãã ã確èªããã人ã¯ä¸ã¾ã§ãã£é£ã°ãã¦ãã ããã å°å ¥ text-generation-webuiã®å°å ¥ 以ä¸ããclone èªåã¯pyenv+venvæ´¾ãªã®ã§ python -m venv .venv ã§activateã ãã¨ã¯åºæ¬çã«install
1. Text generation ã¿ããText generation ã¿ããã¯ãããã¹ãçæãè¡ãã¿ãã§ãã 以ä¸ã®3ã¤ã®ã¢ã¼ããããããInference mode ã¿ããã§åãæ¿ãã¾ãã ã»chatã¢ã¼ã : ãã£ããã¢ããªé¢¨ã®ã¢ã¼ã ã»notebookã¢ã¼ã : Playground風ã®ã¢ã¼ã ã»defaultã¢ã¼ã : å ¥åºåãå¥ãã¦ããã¢ã¼ã 1-1. chatã¢ã¼ãã»Input : ã¡ãã»ã¼ã¸å ¥å ã»Stop : ããã¹ãçæã®åæ¢ ã»Generate : ããã¹ãçæ ã»Continue : ããã¹ãçæã®ç¶ãã®çæ ã»Impersonate : ãªããã¾ã ã»Regenerate : ããã¹ãåçæ ã»Remove last : æå¾ã®ä¼è©±ãã¢ã®åé¤ ã»Copy last reply : æå¾ã®è¿ä¿¡ã®ã³ãã¼ (æå¾ã®è¿ä¿¡âInput) ã»Replace last re
ãtext-generation-webuiãã§ãRinnaãã®LoRAãã¡ã¤ã³ãã¥ã¼ãã³ã°ã試ããã®ã§ãã¾ã¨ãã¾ããã åå LoRAãã¡ã¤ã³ãã¥ã¼ãã³ã°ã試ãLoRAãã¡ã¤ã³ãã¥ã¼ãã³ã°ã®æé ã¯ã次ã®ã¨ããã§ãã (1) åã åã¨åãæé ã§ãRinnaã¨ä¼è©±ã§ããããã«è¨å®ã ä»åã¯ãRinnaã®ãã¼ã¹ã¢ãã« (rinna/japanese-gpt-neox-3.6b) ã使ãã¾ããã (2) ãModelã¿ããã§ãload-in-8bitãããã§ãã¯ãã¦ãRinnaã¢ãã«ãåèªã¿è¾¼ã¿ã (3) ããããã¨ãããã¼ã¿ã»ããã(dataset_plain.txt) ããã¦ã³ãã¼ããã¦ãtraining/datasetsããã©ã«ãã«é ç½®ã ä»åã¯ãEOSã®ãªããã¬ã¼ã³ã®æ¹ã使ãã¾ããã (4) ãTraining ã¿ããã§ãNameãã«LoRAã¢ãã«åãæå®ãããOverride Exis
text-generation-webui Python製 主ã«ãªã¼ãã³ãªè¨èªã¢ãã«åã stable-diffusion-web-uiã¨åãç«ã¡ä½ç½®ãç®æãã¦ããããã æ®éã«ChatGPTã£ã½ãã¤ããã¨ããããã¯ããªã¼ãã³ã½ã¼ã¹ã®è¨èªã¢ãã«ãè²ã 試ããããç´°ãããã©ã¡ã¼ã¿è¨å®ãããããã¬ã¼ãã³ã°ãããããå°ãå°é家åãã«æãããUIç¨æãããã¿ãããªæãã«è¿ãã¨æãã ãªã®ã§ãä»åã®ç®çã¨ã¯ã¡ãã£ã¨ç«ã¡ä½ç½®ãéãã¨ã¯æãã¤ã¤ããä»ã¾ã§è§¦ã£ã¦ããªãã£ãã®ããã£ã¦ãããã触ã£ã¦ã¿ãã ã¤ã³ã¹ãã¼ã« Windows/Linux/macOS/WSLåãã«ã¯ã³ã¯ãªãã¯ã§ãã¼ã«ã«ã§å®è¡ã§ããã¤ã³ã¹ãã¼ã©ãç¨æããã¦ããã®ã ãã©ãä¸ãè¦ã¦ãã¨condaã¨ã使ã£ã¦ãã¿ãããå人çã«ã¯condaãã°ãã¼ãã«ã«ã¤ã³ã¹ãã¼ã«ãããã¨ã«èºèºããã¨ããããã£ã¦ãä»ã®æ¹æ³ã¯ãªãããªã¼ã¨ããã£ã¦ããDockerã§ã§
text-generation-webui ãã¤ãã®npakaããã®å¾è¿½ãè¨äºã§ããnpakaãããç´ ã®Windowsã§ã»ããã¢ãããã¦ããã®ã«å¯¾ãã¦ãLinux + Dockerã§ã»ããã¢ãããã¾ãã ã»ããã¢ããæ¹æ³ Linux(Ubuntu22.04)åæã§ããWindows(WSL2ï¼ã§ãåãæ°ããã¾ããMacã¯åãããªãã§ãï¼ã ãããï¼ã Dockerã»ããã¢ãã Dockerã®ã¤ã³ã¹ãã¼ã«ã¯ã以ä¸è¨äºåç §ãã ããï¼éã«çç¥ï¼ ã»ããã¢ãã git lfsãã»ããã¢ãããã¾ãã
ãä¸å¯§ã«ãç´¹ä»ããã¨ããå 容ã«ãªã£ã¦ãã¾ãã 大è¦æ¨¡è¨èªã¢ãã«ã¨ããã¨ChatGPTã«ä½¿ããã¦ãããGPT-4ããæåã§ããããã®ã»ãã«ãæ§ã ãªä¼æ¥ã»å£ä½ãéçºã«çæãã¦ããè²ã ãªã¢ãã«ãåå¨ãã¾ãããã åºæ¬çã«ãã®æã®ã¢ãã«ã¯Webãµã¼ãã¹ã®å½¢ã§æä¾ããã¦ãããã®ãå¤ããèªåã®PCã§åããã¨ããã¤ã¡ã¼ã¸ã¯ãã¾ããªãã¨æãã¾ãã ããã調ã¹ã¦ã¿ãã¨LLMãæ軽ã«æ±ãããText generation web UIãã¨ããç¡æãã¼ã«ããã£ãã®ã§ä»å使ã£ã¦ã¿ããã¨ã«ãã¾ããã ããã§ã¯ãã®ãã¼ã«ã«ã¤ã㦠ãã¼ã«æ¦è¦ ã¤ã³ã¹ãã¼ã«æ¹æ³ 使ãæ¹ ããªãã¹ãããããããæ¸ãã¦ããã¾ããã
çæAIã®ãããã©ã³ãã¼ã¨ããã°ãç±³OpenAIãæä¾ããGPT-4ãªã©ã使ã£ãChatGPTã§ããããã®å¯¾æ馬ã¨ãã¦æå¾ ããã¦ããã®ãç±³Metaãæä¾ãã大è¦æ¨¡è¨èªã¢ãã«ãLlama 2ãã§ãã ãã®Llama 2ãGPT-3.5ã®3æ1æ¥æç¹ã®ã¢ãã«ã«å¹æµããæ§è½ãæã£ã¦ããã¨ããã®ãã¦ãªã§ããGPT-3.5ã¨ããã°ãç¡æçã®ChatGPTã§ä½¿ããã¦ããã¢ãã«ã§ããããããªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éãããã®ã§ããããè¡æçã§ãã ããã«ãé«æ§è½ãªã ãã§ãªãã¢ãã«ãµã¤ãºãå°ãããã¨ãç¹å¾´ã§ããGPT-3ã®ãã©ã¡ã¼ã¿æ°ã¯1750åï¼175Bï¼ãGPT-3.5ã¯æªå ¬éã§ã¯ãããã®ã®3550åï¼355Bï¼ã¨æ¨å®ããã¦ãã¾ããä¸æ¹ã§ãLlama 2ã¯ã700åï¼70Bï¼ãã©ã¡ã¼ã¿ã§ãGPT-3.5並ãããã£ã¦ãã¾ãã ãã©ã¡ã¼ã¿ãå°ãããªãã°å¿ è¦ãªGPUã®ã¡ã¢ãªãå°ãããªãã¾ããGPT-3.5ã¯ãã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}