âšðAmazon Novaã¢ãã«ã§åµé å解æŸïŒããã¹ãã»ç»åã»åç»ãèªåšã«æãæ°æ代ã®AIã¬ã€ãð»ðšð¹âš
ãã¯ããã«ïŒNovaã¢ãã«ã£ãŠãªã«ïŒã
AmazonãæºãæããŠæå ¥ãããNovaãã¢ãã«çŸ€ã¯ãLLMïŒå€§èŠæš¡èšèªã¢ãã«ïŒçéã§è¶ æåŸ ã®æ°æïŒðð« ããã¹ããç»åããããŠåç»ãŸã§ãçæã»ç解ã§ãã¡ããå€æãªã©ã€ã³ããããç¹é·ã§ããAmazon BedrockãšãããããŒãžããµãŒãã¹äžã§APIçµç±ã§ã¬ã³ã¬ã³äœ¿ããã®ã§ãã¯ã©ãŠãã®åãåããŠè¶ ã¹ã ãŒãºãªã¹ã±ãŒã«ã¢ãŠããå¯èœïŒâ âïž
ãããã®ã¢ãã«ã䜿ãã°ãäŸãã°
ã»ããã¹ãã®é«åºŠãªç解ãçæïŒãã£ããå¿çãé·æèŠçŽãã³ãŒãåŠçãªã©ïŒ
ã»é«å質ãªç»åçæïŒãã«ãã¢ãŒãã«å¯Ÿå¿ã§çµµç»é¢šãããªã¢ã«é¢šãŸã§ããŸããïŒïŒ
ã»ãªããšãåç»çæãŸã§ïŒïŒã«ã¡ã©ã¯ãŒã¯æå®ã§æ åè¡šçŸãã¯ãªãšã€ãã£ãã«ïŒïŒ
ãšãã£ãããšããAPIã³ãŒã«ã²ãšã€ã§å®çŸå¯èœã«ïŒâšð
ãNovaãã¡ããªãŒçŽ¹ä»ïŒå¢ãããã®ã©ã€ã³ãããã
Novaãã¡ããªãŒã¯äž»ã«ä»¥äžã®ã¢ãã«ãã¡ããæ§æãããŸããåã¢ãã«ãç°ãªãåŸæåéãæã£ãŠãããããçšéã«åãããŠãã§ã€ã¹å¯èœïŒð¡
Nova MicroïŒ
ããã¹ãç解ç¹åã¢ãã«
128kã³ã³ããã¹ãé·ã§ãè¶ é«éåŠçïŒçŽ157ããŒã¯ã³/ç§ïŒïŒ
ðïžðš ãã¹ããŒãéèŠã§ããã¹ãåŠçããããªãã³ã¬ïŒããªåïŒNova LightïŒ
ããã¹ããšç»åããããŠåç»ã«ãŸã§å¯Ÿå¿ãããã«ãã¢ãŒãã«ã¢ãã«ïŒ
300kãšãã巚倧ã³ã³ããã¹ãé·ã§ãè€éãªæ瀺ããæã®ãã®ð
ããã£ãšããã¹ã質åããããç»åé¢é£ã®æ瀺ãåºãããããããæã«äŸ¿å©âšNova ProïŒ
ããã¹ãã¯ãã¡ããã15kè¡ãã®ã³ãŒããåŠçã§ãããããŒãã¥ãŒãã£ã¢ãã«ïŒð»ð§
åãã300kã³ã³ããã¹ãã§ã巚倧ã§è€éãªå ¥åã«ã察å¿å¯èœ
ã³ãŒã解æãé·æããã¥ã¡ã³ãåŠçã§å€§æŽ»èºïŒNova CanvasïŒ
ç»åçæã»ç·šéç¹åã¢ãã«ðŒïžðš
ããã¹ãããã³ããããç»åçæãã€ã³ãã€ã³ããã¢ãŠããã€ã³ããŸã§ããŸããïŒ
äŸãã°ãç«ãã³ãŒããŒã飲ãã§ããçµµããé¡ãïŒããšããã°ããŠããŒã¯ãªç»åãçæãããðNova ReelïŒ
åç»çæã¢ãã«ïŒð¹âš
ããã¹ãããã³ããã§ãç æµã«ãã倧ããªè²æ®»ã«ã«ã¡ã©ããºãŒã ã€ã³ããæ åããªããŠæå®ããã°ããã®ãŸãŸåç»ãäœããã¡ããïŒ
è¡šçŸåè±ããªæ åå¶äœããAPIã³ãŒã«äžçºã§å¯èœã«ïŒððŠª
å°æ¥çã«ã¯ãããã«é«æ§èœãªNova Premiereã¢ãã«ãç»å Žäºå®ãšã®ããšïŒðð¥
ãBedrockãšã®çµã¿åããã§è¶ ãæ軜ïŒã
ãã©ããã£ãŠäœ¿ãã®ïŒãã£ãŠçåãåœç¶ãããŸãããïŒð
Amazon Novaã¢ãã«ã¯ãAmazon BedrockãšããLLMã¢ã¯ã»ã¹çšã®ãããŒãžããµãŒãã¹äžã§æäŸãããŸãã
ã€ãŸããèªåã§å·šå€§ã¢ãã«ããã¹ããããGPUçšæãããããæéã¯äžåäžèŠïŒð
ââïžðŠ
AWSã¢ã«ãŠã³ãäœæ â Bedrockæå¹å â APIããŒèšå®
boto3ãªã©ã®SDKã䜿ã£ãŠPythonãJavaScriptããã¢ãã«åŒã³åºã
ããšã¯ããã³ãããéãã ãã§ã¢ãã«ãçŽ æµãªå¿çãè¿ããŠãããŸãïŒ
ããã§ã¹ã±ãŒã«ã¢ãŠããã»ãã¥ãªãã£å¯Ÿçãã€ã³ãã©ç®¡çã¯AWSåŽã«ä»»ããŠããŸããã®ã§ãéçºè ã¯ã¢ã€ãã¢å®çŸã«éäžã§ãã¡ããð±ð»
ãã³ã¹ãé¢ãã°ãããã¥ãŒã¹âšã
ãããããã ãã©ãé«ããã§ããâŠïŒããšæã£ãæ¹ãæå ±ã§ãïŒð£
Nova Microãªã100äžããŒã¯ã³ãããçŽ0.35 USDãšãGPT-4æ¯èŒã§çŽ1/3ã®ã³ã¹ãïŒðð°
倧èŠæš¡å©çšã§ãã³ã¹ããæãããããããäŒæ¥å©çšã倧èŠæš¡ãããžã§ã¯ãã«ãæé©ã
åã¢ãã«ã®èª²éãæéäœç³»ã¯AWSå
¬åŒãµã€ãã«æ²èŒãããŠããã®ã§ããããžã§ã¯ãããšã«ã³ã¹ãã·ãã¥ã¬ãŒã·ã§ã³ãããããã§ããðð¹
ãè¶ å€èšèªå¯Ÿå¿ã§ã°ããŒãã«åã«ã°ã£ã¡ãã
200以äžã®èšèªå¯Ÿå¿ãšã®ããšïŒðâš
ã°ããŒãã«ããžãã¹ã§äœ¿ãããå Žåãèšèªã®å£ã軜ã
çªç Žã§ãã倧ããªã¢ããã³ããŒãžã
å€æ§ãªãŠãŒã¶ãŒã顧客ã«ãªãŒãããéãNovaã¢ãã«ã¯é ŒããããŒãããŒïŒðªð
ã䜿ã£ãŠã¿ããïŒå ·äœçãªAPIã³ãŒã«äŸã
ããããå
·äœçãªã³ãŒãäŸãããã€ã瀺ããŸãã
以äžã¯PythonïŒboto3ã®äŸã§ãããŒãã«çŽæ¥è²Œãä»ãããã圢åŒã§èšèŒããŸãã
ïŒâ»å®éã«åããã«ã¯AWSã¢ã«ãŠã³ããšBedrockæå¹åãé©åãªCredentialsèšå®ãå¿
èŠã§ãïŒ
äŸ1ïŒNova Lightã¢ãã«ãžã®ããã¹ã質å
import boto3
bedrock = boto3.client('bedrock-runtime', region_name='us-east-1')
prompt = "é¶ãšåµãã©ã¡ããå ã«çãŸããïŒ" response = bedrock.invoke_model( modelId='nova-light', contentType='application/json', body={ "prompt": prompt, "max_tokens": 100 } )
print(response)
ãã®ããã«ãpromptãæž¡ããšå²åŠçãªåçããŠããŒã¯ãªèŠè§£ãåŸããã¡ãããŸãð¥ð
ãç»åçæããŠã¿ãïŒ Nova Canvasã¢ãã«ã
Nova Canvasã䜿ã£ãŠç»åçæãããŠã¿ãŸãããã
ãç«ããã°ã«ããã§ã³ãŒããŒã飲ããã€ã¡ãŒãžãçæããäŸã§ãã
import boto3 import base64 from PIL import Image from io import BytesIO
bedrock = boto3.client('bedrock-runtime', region_name='us-east-1')
prompt = "A cat drinking coffee from a mug" response = bedrock.invoke_model( modelId='nova-canvas', contentType='application/json', body={ "prompt": prompt, "resolution": "512x512", "num_inference_steps": 50, "guidance_scale": 7.5 } )
ã¬ã¹ãã³ã¹ã«ã¯Base64ãšã³ã³ãŒããããç»åããŒã¿ãå«ãŸãããšä»®å®
ããããã³ãŒãããŠä¿åããäŸïŒ
img_data = base64.b64decode(response['body']['image']) img = Image.open(BytesIO(img_data)) img.save("cat_coffee.png")
print("ç»åçæå®äºïŒcat_coffee.pngãšããŠä¿åããŸããðŒïžâð±")
ç»åå質ã¯ãŸã æ¹åã®äœå°ããããŸãããããã³ããããã©ã¡ãŒã¿ã工倫ããã°ãããèªç¶ãªçæãæåŸ ã§ããŸãðâš
ãåç»çæã§ã¯ãªãšã€ãã£ãã«ïŒ Nova Reelã
åç»çæã¢ãã«Nova Reelã䜿ã£ãŠãç æµã®è²æ®»ã«ã«ã¡ã©ããºãŒã ã€ã³ããæ åãçæããäŸã§ãã
import boto3 import base64
bedrock = boto3.client('bedrock-runtime', region_name='us-east-1')
prompt = "A closeup of a large seashell in the sand, gentle waves flow around the shell. Camera zooms in slowly." response = bedrock.invoke_model( modelId='nova-reel', contentType='application/json', body={ "prompt": prompt, "frame_rate": 24, "duration_seconds": 5 } )
bedrock = boto3.client('bedrock-runtime', region_name='us-east-1')
prompt = "A closeup of a large seashell in the sand, gentle waves flow around the shell. Camera zooms in slowly." response = bedrock.invoke_model( modelId='nova-reel', contentType='application/json', body={ "prompt": prompt, "frame_rate": 24, "duration_seconds": 5 } )
video_data = base64.b64decode(response['body']['video']) with open("seashell_video.mp4", "wb") as f: f.write(video_data)
print("åç»çæå®äºïŒseashell_video.mp4ãšããŠä¿åããŸããð¹ððŠª")
ããã§æ³¢æã¡éã®å¹»æ³çãªæ åãçæãããŸãã
ã«ã¡ã©ã¯ãŒã¯æå®ã§èšå Žæ溢ããåç»ãæãã®ãŸãŸã«ïŒð¬ð
ã匷åãªã«ã¹ã¿ãã€ãºãªãã·ã§ã³ïŒFine-tuningãRAGã
Novaã¢ãã«ã¯Fine-tuningïŒåŸ®èª¿æŽïŒãRAGïŒRetrieval Augmented GenerationïŒã«å¯Ÿå¿å¯èœã
ç¬èªã®ãã¡ã€ã³ããŒã¿ã§ã¢ãã«ãç¹åãããããå€éšç¥èããŒã¹ãšçµã¿åãããŠç²ŸåºŠåäžãå³ã£ããã§ããŸããðð
ããšã³ã¿ãŒãã©ã€ãºå©çšèŠç¹ã
äŒæ¥å©çšã§ã¯ãã¹ã±ãŒãªã³ã°ãã¢ã¯ã»ã¹å¶åŸ¡ãã³ã¹ã管çãéèŠã
Bedrockãªãã€ã³ãã©ç®¡çãAWSã«ä»»ãããããããéçºè
ã¯ããžãã¹ããžãã¯ã«éäžã§ããŸãã
ã³ã¹ããäœããå€èšèªå¯Ÿå¿ãããã«ã»ãã¥ãªãã£ãã¬ããã³ã¹ãèæ
®ããéçšãå¯èœã§ããšã³ã¿ãŒãã©ã€ãºåãã«ãæé©ïŒð¢ðŒ
ãã¯ãªãšã€ãã£ããªæŽ»çšã¢ã€ãã¢ð¡ã
ã»ããŒã±ãã£ã³ã°è³æäœãïŒæ°ååã®ããã¢ãŒã·ã§ã³ç»åã»åç»ãç¬æçæ
ã»æè²ã³ã³ãã³ãïŒåã©ãåãã®åãããããåç»ãå³è§£
ã»éçºè
ãµããŒãïŒã³ãŒã解æãããã¥ã¡ã³ãèŠçŽã§å¹çå
ã»ã¢ãŒãå¶äœïŒãŠããŒã¯ãªã¢ãŒãç»åçæã§ããŒããã©ãªãªåŒ·å
ã»ããŒã«ã©ã€ãºïŒå€èšèªå¯Ÿå¿ã§äžçäžã®ãŠãŒã¶ãŒãžé©å¿
ãä»åŸã®å±æã
ãªãªãŒã¹çŽåŸã§ãã€ã³ãã€ã³ããæåŸ
ã©ããåããªãã±ãŒã¹ãç»è³ªã®åŸ®åŠãªç¹ããããããããŸããããã¢ãã«ã¯ã¢ããããŒãã§é²åããŸããðð
å°æ¥ã®Nova Premiereã§ã¯ãããã«é«å質ãã€é«åºŠãªæ©èœãè¿œå äºå®ã
æ°ãµæãæ°å¹ŽåŸã«ã¯æ³åãè¶
ããã¯ãªãªãã£ãã¹ããŒãã§ãAIãã³ã³ãã³ãå¶äœãæ¯ããæ代ãæ¥ãã§ãããïŒðâš
ããŸãšãïŒNovaã¢ãã«ã¯æ°æ代ã®AIã¯ãªãšã€ãã£ãããŒãããŒã
Novaãã¡ããªãŒã¯é«éã»äœã³ã¹ãã»å€æ©èœãªAIã¢ãã«çŸ€ã§ãããããã¯ãªãšã€ã¿ãŒãéçºè
ãããžãã¹ããŒãœã³ã匷åã«ãµããŒããðð
AWS Bedrockãšçµã¿åãããã°ãçŽæçãªAPIã³ãŒã«ã§ããã¹ããç»åãåç»çæãå®çŸã
ã³ã¹ããèšèªå¯Ÿå¿ãã»ãã¥ãªãã£é¢ã§ãå®å¿ããŠéçšå¯èœã§ãç¡éã®ãŠãŒã¹ã±ãŒã¹ã«å¿çšã§ããŸãïŒð¥ð
ãæãã€ãããå³å®è¡ïŒããããããã®åèšèã
Novaã¢ãã«ãšãšãã«ãæ°ããã¢ã€ãã¢ã次ã
ã«åœ¢ã«ããäžçã«ã€ã³ãã¯ããäžããŸãããïŒðð¥