2023-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ChatGPTãããããæãã¦ããã¾ããã ãããè±èªã®åå¼·ç¨ã«æç« ãã確èªåé¡ããä½ã£ã¦ãããã¨ãããããªããã£ã¦ãã£ã¦ã¿ãããããããã æ¥æ¬èªã®æç« ãå ¥ããã¨ãããæãã®åèªæ°ã®æç« ã§è±è¨³ãã¦ãé£ããåèªã¨ãã®èª¬æãæãã¦ã確èªåé¡ãã¤ãã£ã¦â¦
Dependency Injection(DI)ãæè¿ã®ãã¬ã¼ã ã¯ã¼ã¯ã«ã¯æ¬ ãããªãæ°ãããæ©è½ã«ãªã£ã¦ã¾ããã ããã¦DIã®èª¬æãã¿ãã¨ãä¾åæ§ã®æ³¨å ¥ãã¿ãããªãã¨ãæ¸ãã¦ãã£ã¦ãããããããã«ãªããã¡ã§ãã å®æ ã¨ãã¦ã¯é«æ©è½ãªimportãªã®ã§ããã¾ãé£ãããã¨ãèâ¦
å é±ãOpenAIãããAPIã§ã®è¿çã«é¢æ°å¼ã³åºãã®ãã©ã¡ã¼ã¿ãè¿ãã¦ãããFunction Callingãçºè¡¨ããã¾ããã 試ãã¦ã¿ãã¨çµæ§ãã®ããã£ãã®ã§ã¾ã¨ãã¦ã¿ã¾ãã 解説åç»ã¯ãã¡ã youtu.be ã¨ããããããããªæãã OpenAIã®Function Callingã§ãã¼ã«æâ¦
ChatGPTã¯ä½ã§ãç¥ã£ã¦ã¾ããããã§ãèæ§æ°èãªãã¦è©±é¡ã«ãªã£ã¦ããã¨ãå¤ãããå½ç¶ãã£ã¦ãã ããã¨æã£ãããç¥ãã¾ããã§ããã ãããå½éä¿¡å·å¦é¢å¤§å¦ãç¥ããªãã£ãã®ã§ãèæ§æ°èãç¥ããªãããããªããã¨æã£ããã§ãããã ãããã£ããã§ã¤ã¯ç³»â¦
CTranslate2ã¯Transformerã¢ãã«ãCPUãGPUã§å¹ççã«åããã©ã¤ãã©ãªã§ãã https://github.com/OpenNMT/CTranslate2 CTranslate2ã®æ©è½ã®ã²ã¨ã¤ã«ã¢ãã«ã®éååãããã¾ããINT8ã§éååããã¨éã«å¿ è¦ã¡ã¢ãªãååã«ãããã¦CPUã§ãåããããããªãã®â¦
ã¿ãªãããä»æ¥ãï¾ï¾ï¾ï¾ï¾ï½¯ï½¸ï½½ï¾ï¾ï½¨ï½¯ï½¸ï½³ï¾ï½«ï½²ï¾ï¾ï¾ï½²ï¾ãã¦ã¾ããï¼ ï½¼ï¾ï½¬ï¾ï¾ã¨è¨ãã°ï¾ï¾ï¾ï¾ï¾ï½¯ï½¸ï½½ï¾ï¾ï½¨ï½¯ï½¸ï½³ï¾ï½«ï½²ï¾ï¾ï¾ï½²ï¾ã§ãããã æè¿ã¯IDEã§main[tab]ã¨å ¥åããã°è£å®ãã¦ãããã¨ã¯ãããã³ã¼ããèªãã¨ãã«ã¯ç®ã«å ¥ã£ã¦ããããã¾ããã ãããªï¾ï¾ï¾ï¾ï¾ï½¯ï½¸ï½½ï¾ï¾ï½¨ï½¯ï½¸ï½³ï¾ï½«ï½²ï¾ï¾ï¾ï½²ï¾ã®åªæããâ¦
ã¡ãã£ã¨åã«ãé åä¸ã®ãã¹ã¦ã®è¦ç´ ãæ¡ä»¶ãæºãããã©ããå¤å¥ããé¢æ°ã§ã空ã®é åã¯Trueãè¿ãã¹ããFalseãè¿ãã¹ãããã®ãããªè©±ã話é¡ã«ãªã£ã¦ã¾ããã ã¾ãããã¯ãTrueãè¿ãããçããªããã§ãããã§ã¯ãé åä¸ã®æ大å¤ãè¿ãé¢æ°ã§ç©ºã®é åã®å ´â¦