ã¯ããã«
ã¤ãããããã¸ã¤ããã1ãnikkieã§ãã
9æã®ã¿ããªã®Pythonåå¼·ä¼ã®ã¬ãã¼ãã§ãã
ã¯ã©ã¦ãããã¼ãã®åã ã£ãã®ã§ãããï¼ã¹ã¿ããï¼åå å¾ã®ç§ã®è³å
ã¯ãHugging Faceãã¤ãã... ã¤ããã...ãã¨ãªã£ã¦ã¾ãã
ç®æ¬¡
- ã¯ããã«
- ç®æ¬¡
- åå¼·ä¼ã®æ¦è¦
- Postmanã§å§ããAIã»æ©æ¢°å¦ç¿ãã©ãããã©ã¼ã Hugging Face
- å¼·åå¦ç¿åºç¤ã®åºç¤ã¨AWS DeepRacerã¯ããã®ä¸æ©
- LTãChatGPT in Slackã§AI Slackbotã楽ããéç¨ããã
- æLTãPythonã¤ãã³ãã¤ã³ãã©ã¡ã¼ã·ã§ã³ï¼9æçï¼ã
- çµããã«
- P.S. ç´¹ä»ãããæ¸ç±
åå¼·ä¼ã®æ¦è¦
ãã¿ããªã®Pythonåå¼·ä¼ãã§ã¯ãPythonãä¸å¿ã¨ãã¦ããã°ã©ãã³ã°ãä»äºãç 究ã趣å³ãªã©æ§ã ãªã·ã¼ã³ã«çããæ¹æ³ãä¸ç·ã«å¦ã³ã¾ãã
ããã°ã©ããWEBã¨ã³ã¸ãã¢ã«éãããåå¿è ãããã¹ã¿ã¼ã¾ã§æ§ã ãªã¬ãã«ã®ããããããªåéã®äººãéã¾ãã®ã§ããã¿ããªãã®åå¼·ä¼ã§ãããæ°è»½ã«ãåå ãã ããã
9æã¯ãã¯ã©ã¦ãæè¡ã®æåç·ãã
ãã¼ã¯2æ¬ + LT2æ¬ã§ããã¼ã¯ã®æ
å ±éããããã£ãã§ã
- ãã¼ã¯
- èèãããPostmanã§å§ããAIã»æ©æ¢°å¦ç¿ãã©ãããã©ã¼ã Hugging Faceã
- Yukkiãããå¼·åå¦ç¿åºç¤ã®åºç¤ã¨AWS DeepRacerã¯ããã®ä¸æ©ã
- LT
- iwamotãããChatGPT in Slackã§AI Slackbotã楽ããéç¨ããã
- nikkieãPythonã¤ãã³ãã¤ã³ãã©ã¡ã¼ã·ã§ã³ï¼9æçï¼ã
Postmanã§å§ããAIã»æ©æ¢°å¦ç¿ãã©ãããã©ã¼ã Hugging Face
æ¬æ¥ã®çºè¡¨è³æãã¢ãããã¼ããã¾ãã #stapy
— èè æ彦 (@nagix) 2023å¹´9æ14æ¥
Postmanã§å§ããAIã»æ©æ¢°å¦ç¿ãã©ãããã©ã¼ã Hugging Facehttps://t.co/ijqtakZyVh
Hugging Faceã®Inference APIãã¤ãããªãã§ããï¼ï¼
Hugging Faceã¯ç¡æ°ã®æ©æ¢°å¦ç¿ã¢ãã«ã®å ±æã«ä½¿ããã¦ãã¾ããã大LLMæ代ã§æ¥ã æ°ããªã¢ãã«ã仲éå ¥ããã¦ãã¾ããããããã®ã¢ãã«ãAPIçµç±ã§ç°¡åã«è©¦ããï¼ï¼ð
çºè¡¨ãèããªããHugging Faceã®ã¢ã«ã¦ã³ãä½æã»ãã¼ã¯ã³çæããã¦å©ãã¦ã¿ã¾ããã
ä¸è¨ããã¥ã¡ã³ãã®Pythonã³ã¼ããåèã«ãã¦ãã¾ãï¼ããã¦ããããã£ãcurl
ã³ãã³ãã¯Postmanãããçæã§ããããã§ãï¼ã
curl -s -H "Authorization: Bearer ${HF_TOKEN}" https://api-inference.huggingface.co/models/distilbert-base-uncased -d "The goal of life is [MASK]." | jq . [ { "score": 0.03619178757071495, "token": 8404, "token_str": "happiness", "sequence": "the goal of life is happiness." }, { "score": 0.030553586781024933, "token": 7691, "token_str": "survival", "sequence": "the goal of life is survival." }, { "score": 0.01697724126279354, "token": 12611, "token_str": "salvation", "sequence": "the goal of life is salvation." }, { "score": 0.01669846847653389, "token": 4071, "token_str": "freedom", "sequence": "the goal of life is freedom." }, { "score": 0.0152673264965415, "token": 8499, "token_str": "unity", "sequence": "the goal of life is unity." } ]
ä»åæå®ããã®ã¯distilbert-base-uncased
2ã
curl
ã¨jq
ã§NLPï¼fill-maskã¿ã¹ã¯ï¼ãã¦ã...
ã¢ãã«ã®IDãå¤ããã°ä»ã®ã¢ãã«ãå©ãåãããã¾ãï¼
ç´¹ä»ãããä¾
- ææ åæ https://www.postman.com/postman-student-programs/workspace/hugging-face-inference-api-free/example/21521806-ce127bef-1f4e-4f80-8e8b-d026fa7e1423
- ç»åçæ https://www.postman.com/postman-student-programs/workspace/hugging-face-inference-api-free/request/21521806-0775c6b5-cbf5-4c63-b9a4-cb67223f644f
- Stable Diffusion
Postmanã®UIããå©ãã¨ç»åã表示ã§ããã®ã¯ä¾¿å©ã§ããã
èèããã«ã¯éå»ã«Function callingã¨Postmanã«ã¤ãã¦ãLTãã¦ããã ãã¾ããã
æ©æ¢°å¦ç¿ã®æ¨è«ã«ã¯Postmanãæ´»ç¨ã§ããããã§ããï¼
å¼·åå¦ç¿åºç¤ã®åºç¤ã¨AWS DeepRacerã¯ããã®ä¸æ©
ï¼è³æã¯å ¬éãããã追å ãã¾ãï¼
Yukkiããã®ãã¼ã¯ãå°ãã¿ãä»è¾¼ã¿ã¤ã¤ãæ¬é¡ãã¹ã«ã¹ã«å±éããããã¡ããã¡ãæ å ±éãå¤ãä¸ç¬ã§ããð
ãã¡ãã®å°å ¥ãã¼ãã§ãHugging Faceã®è©±é¡ãï¼
SageMakerã§ç°¡åã«Hugging Faceã®ã¢ãã«ãæ±ããï¼ï¼
èªåã浦島太éã ã£ããªã¨çæãã¾ãã
å°å
¥ã§ã¯ãAWSã³ã³ã½ã¼ã«ã§Yukkiããã®çµµãçæï¼èª°ã ããã¤ï¼ã¨ãããã¿ãæã¾ããã®ã§ããããã®UIãStable Diffusion web UI4ã£ã½ãï¼
AWS使ãã°ãéã§æéãç¯ç´ã§ããããã§ããã
æ¬é¡ã®DeepRacerã¯åãã¦èãã¾ãããããããã«æ©æ¢°å¦ç¿ãå¦ã¶ã®ã«ãã£ã¦ã¤ãã ãªãã¨ããå°è±¡ã§ã
- ã¢ããåããã楽ããã
- æ©æ¢°å¦ç¿ã®ã¨ãã»ã³ã¹ãå¦ã¹ãã
- å¼·åå¦ç¿ã«ã¤ãã¦
- æ±åï¼éå¦ç¿ï¼ï¼ä»ã®ã³ã¼ã¹ã§ãéç¨ãã
Yukkiããã®DeepRacerãã¼ã¯ #stapy
— nikkie ã«ã£ãã¼ (@ftnext) 2023å¹´9æ14æ¥
ãå¼·åå¦ç¿ã¯ãè¤ãã¦è²ã¦ãã
ç©ã¾ãã¦ãããã®ãå¢ãã¦ãã¾ã£ãã
LTãChatGPT in Slackã§AI Slackbotã楽ããéç¨ããã
æ¬æ¥ã®LTè³æã§ãããããã¨ããããã¾ããï¼ï¼ #stapy
— Takashi Iwamoto (@iwamot) 2023å¹´9æ14æ¥
ChatGPT in Slackã§AI Slackbotã楽ããéç¨ãã - Speaker Deckhttps://t.co/bD3a9UreTG
ç°¡åã«Slackã«ChatGPTãä½ã¾ããããããï¼
試ãã¦ã¿ããã§ã
æLTãPythonã¤ãã³ãã¤ã³ãã©ã¡ã¼ã·ã§ã³ï¼9æçï¼ã
ã¿ããªãè¡ããï¼
ã¿ããªã®Pythonåå¼·ä¼ã®LTãã¸ã£ãã¯ããPythonã¤ãã³ãã¤ã³ãã©ã¡ã¼ã·ã§ã³ï¼9æçï¼ã§ã #stapyhttps://t.co/KXIS1u19aA
— nikkie ã«ã£ãã¼ (@ftnext) 2023å¹´9æ14æ¥
ã»10/7ã®Django Congress JP 2023ï¼Djangoã«é¢ããå ¨ã¦ã®äººåãï¼
ã»10/26ã29ãPyCon APAC 2023ï¼4æ¥éã®Pythonç¥ãï¼ï¼
ã©ã¡ãããã±ããçºå£²ä¸ï¼ã¿ããªãè¡ããï¼
çµããã«
2023å¹´9æã®ã¿ããªã®Pythonåå¼·ä¼ã®ã¬ãã¼ãã§ããã
Inference APIãDeepRacerãChatGPT-in-Slackã¨ãåå¨ãç¥ããªãã£ããã®ãç¥ããã®ããã¡ããã¡ããããããã£ãã§ãã
Hugging Faceãæªæ¥ãããð¤
Inference APIã¨ãããdatasetsãevaluateã¨ãã£ãåå空éã®åãæ¹ã¨ããããã¡ããã¡ãéå¿çã§ããã
ãåå ããã ããçãã¾ãçºè¡¨è ã®çãã¾ãéå¶ã¹ã¿ããã®çãã¾ããããã¨ããããã¾ããã