7Bで30B超え?Mistral-OpenOrca-7Bを試す
LLMのサイズ比性能インフレが止まらない。
今度はMistral-7BにOpenOrcaを学習させたら、ほとんどの30Bモデルの性能を上回り、Llama2-70Bを超えたとか。もう何を信じればいいのやら。とにかく試してみる。
大阪について聞いてみる
% curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "Osaka as known as","n_predict": 256}'
{"content":" Japan’s kitchen, is a city filled with delicious street food. It has various markets and shopping streets that make it an attractive destination for those who love to eat local food. If you are in Osaka and looking for some mouth-watering dishes, here are ten must-try foods in Osaka:\n\n1. Takoyaki:\n\nTakoyaki is a popular street food in Japan, especially in Osaka. It is made from wheat flour batter, filled with diced octopus or tako, and cooked in a special nonstick pan to create round spheres. Topped with mayo, takoyaki sauce, and bonito flakes, this snack is a favorite of many locals and tourists alike.\n\n2. Kushikatsu:\n\nKushikatsu is a famous dish in Osaka, which consists of deep-fried skewers of various ingredients. The most common ones are pork, beef, chicken, shiitake mushrooms, and lotus root. To enjoy kushikatsu the traditional way, dip the skewered food into wheat flour, then into egg before frying in vegetable oil. Finally, serve with a dipping sauce like k","generation_settings":{"frequency_penalty":0.0,"grammar":"","ignore_eos":false,"logit_bias":[],"mirostat":0,"mirostat_eta":0.10000000149011612,"mirostat_tau":5.0,"model":"models/mistral-7b-openorca.Q8_0.gguf","n_ctx":2222,"n_keep":0,"n_predict":256,"n_probs":0,"penalize_nl":true,"presence_penalty":0.0,"repeat_last_n":64,"repeat_penalty":1.100000023841858,"seed":4294967295,"stop":[],"stream":false,"temp":0.800000011920929,"tfs_z":1.0,"top_k":40,"top_p":0.949999988079071,"typical_p":1.0},"model":"models/mistral-7b-openorca.Q8_0.gguf","prompt":"Osaka as known as","stop":true,"stopped_eos":false,"stopped_limit":true,"stopped_word":false,"stopping_word":"","timings":{"predicted_ms":6897.205,"predicted_n":255,"predicted_per_second":36.97149787486381,"predicted_per_token_ms":27.04786274509804,"prompt_ms":291.884,"prompt_n":5,"prompt_per_second":17.130092776582476,"prompt_per_token_ms":58.3768},"tokens_cached":261,"tokens_evaluated":6,"tokens_predicted":256,"truncated":false}
確かに今までで一番いいかもしれない。
% curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "Hayao Miyazaki as known as","n_predict": 256}'
{"content":" one of the most famous japanese animators, he founded Studio Ghibli with his friend Isao Takahata in 1985 and became a reference for animation in Japan.\n\nToday we want to talk about his latest movie “The Wind Rises” which came out in 2013 and represents the last film of Miyazaki as a director, he said it would be his last movie but who knows, he may come back with another one!\n\nThe Wind Rises tells the story of Jiro Horikoshi, an aircraft designer responsible for creating the famous Japanese fighter plane, the Mitsubishi A6M Zero. The movie is based on a manga of the same name which was written by Tatsuo Hori. In addition to telling the story of Jiro Horikoshi’s life, the film also depicts the life of his wife, Nahoko, who suffers from a chronic illness.\n\nThe animation itself is absolutely stunning and it will make you feel like you are flying in the clouds. The Wind Rises has some of the most beautiful scenes of any animated film. Miyazaki really outdid himself with this one.\n\nThe soundtrack composed by","generation_settings":{"frequency_penalty":0.0,"grammar":"","ignore_eos":false,"logit_bias":[],"mirostat":0,"mirostat_eta":0.10000000149011612,"mirostat_tau":5.0,"model":"models/mistral-7b-openorca.Q8_0.gguf","n_ctx":2222,"n_keep":0,"n_predict":256,"n_probs":0,"penalize_nl":true,"presence_penalty":0.0,"repeat_last_n":64,"repeat_penalty":1.100000023841858,"seed":4294967295,"stop":[],"stream":false,"temp":0.800000011920929,"tfs_z":1.0,"top_k":40,"top_p":0.949999988079071,"typical_p":1.0},"model":"models/mistral-7b-openorca.Q8_0.gguf","prompt":"Hayao Miyazaki as known as","stop":true,"stopped_eos":false,"stopped_limit":true,"stopped_word":false,"stopping_word":"","timings":{"predicted_ms":6788.412,"predicted_n":255,"predicted_per_second":37.5640134982968,"predicted_per_token_ms":26.621223529411765,"prompt_ms":2647.071,"prompt_n":9,"prompt_per_second":3.3999843600719437,"prompt_per_token_ms":294.11899999999997},"tokens_cached":265,"tokens_evaluated":10,"tokens_predicted":256,"truncated":false}%
完璧に近い。なぜ日本の知識も強化されるんだ?OpenOrcaってそういう内容だっけ?ということは最初からOpenOrcaを日本語に翻訳すればいいのか?
% curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "enchant.js as known as","n_predict": 256}'
{"content":" \"A JavaScript HTML5 Game Framework\" is a JavaScript framework created by the Japan-based company, enchant.co. This framework allows game developers to create games for all major platforms using only HTML5 technologies, such as JavaScript and CSS3.\n\nenchant.js provides tools for building a variety of different game types, including 2D and 3D games, RPGs, action, puzzle, and strategy games. The open-source nature of the framework allows developers to contribute their own modules and improvements. Furthermore, enchant.js also supports mobile devices such as iOS and Android, providing access to touch events, accelerometer data, and other features.\n\nFor more information about enchant.js, please visit: http://enchantjs.com/\n\nThis course is designed for individuals interested in learning how to develop 2D games using the enchant.js framework. By the end of this course, you will have acquired a good understanding of basic game development principles and techniques by following along with the instructor's coding examples and practice exercises throughout the course. The topics covered include setting up the development environment, creating sprites, animations, collision detection, input handling, and other essential game development components.\n","generation_settings":{"frequency_penalty":0.0,"grammar":"","ignore_eos":false,"logit_bias":[],"mirostat":0,"mirostat_eta":0.10000000149011612,"mirostat_tau":5.0,"model":"models/mistral-7b-openorca.Q8_0.gguf","n_ctx":2222,"n_keep":0,"n_predict":256,"n_probs":0,"penalize_nl":true,"presence_penalty":0.0,"repeat_last_n":64,"repeat_penalty":1.100000023841858,"seed":4294967295,"stop":[],"stream":false,"temp":0.800000011920929,"tfs_z":1.0,"top_k":40,"top_p":0.949999988079071,"typical_p":1.0},"model":"models/mistral-7b-openorca.Q8_0.gguf","prompt":"enchant.js as known as","stop":true,"stopped_eos":false,"stopped_limit":true,"stopped_word":false,"stopping_word":"","timings":{"predicted_ms":6785.783,"predicted_n":255,"predicted_per_second":37.57856683598635,"predicted_per_token_ms":26.610913725490196,"prompt_ms":268.337,"prompt_n":7,"prompt_per_second":26.086600058881185,"prompt_per_token_ms":38.33385714285714},"tokens_cached":263,"tokens_evaluated":8,"tokens_predicted":256,"truncated":false}
% curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "In University of Texus,Austin. Dr. Peter Stone as known as","n_predict": 256}'
{"content":" the father of “deep learning” in robotics and artificial intelligence (AI). Deep learning is a subset of AI that has gained significant attention in recent years because it has shown great success in many applications including facial recognition, speech recognition and natural language processing.\n\nDr. Stone and his team have been doing cutting-edge research on AI for the past 30 years. Their efforts have resulted in numerous advances, including a robotic system that can teach itself new tasks, which is the first of its kind.\n\nIn this interview, Dr. Peter Stone talks about his work with deep learning and how it’s being applied to various fields. He also discusses how he became interested in AI and the challenges he faces as a researcher in this field.\n\nQ: Can you tell us a little bit about yourself and your background?\n\nA: I’m originally from Texas, and I went to school at MIT for my undergrad degree in computer science. After that, I moved on to Stanford University where I earned my Ph.D. in AI. I then became an assistant professor at the University of Texas at Austin, and eventually a full professor.\n\nQ: How did you become interested in artificial intelligence?\n\nA:","generation_settings":{"frequency_penalty":0.0,"grammar":"","ignore_eos":false,"logit_bias":[],"mirostat":0,"mirostat_eta":0.10000000149011612,"mirostat_tau":5.0,"model":"models/mistral-7b-openorca.Q8_0.gguf","n_ctx":2222,"n_keep":0,"n_predict":256,"n_probs":0,"penalize_nl":true,"presence_penalty":0.0,"repeat_last_n":64,"repeat_penalty":1.100000023841858,"seed":4294967295,"stop":[],"stream":false,"temp":0.800000011920929,"tfs_z":1.0,"top_k":40,"top_p":0.949999988079071,"typical_p":1.0},"model":"models/mistral-7b-openorca.Q8_0.gguf","prompt":"In University of Texus,Austin. Dr. Peter Stone as known as","stop":true,"stopped_eos":false,"stopped_limit":true,"stopped_word":false,"stopping_word":"","timings":{"predicted_ms":6798.097,"predicted_n":255,"predicted_per_second":37.51049742302883,"predicted_per_token_ms":26.659203921568626,"prompt_ms":253.80700000000002,"prompt_n":17,"prompt_per_second":66.9800281316118,"prompt_per_token_ms":14.929823529411765},"tokens_cached":273,"tokens_evaluated":18,"tokens_predicted":256,"truncated":false}
% curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "In Japan, Golden gai as known as","n_predict": 256}'
{"content":" the “Golden District” is a unique area located in Shinjuku ward of Tokyo. This district contains over 200 tiny bars and taverns packed into an area just five square meters. The area is famous for its intimate, cozy atmosphere and rich nightlife.\n\nEach bar has its own unique characteristics, with some even featuring live music and cultural events. The bars in the Golden Gai also offer a wide range of drinks including sake, Japanese whisky, and local craft beers.\n\nGolden gai is not just about the drinking; it’s also an area steeped in history, as many of the bars have been operating since the 1940s and 50s. The district has been a popular haunt for writers, artists, and celebrities over the years.\n\nIf you decide to visit Golden Gai, be prepared to experience a completely different side of Tokyo nightlife that contrasts from the typical neon-lit streets and crowded karaoke bars.\n\nAddress: Shinjuku, Tokyo, Japan\nPhone: N/A\nWebsite: N/A\n\nGolden gai is not just about the drinking; it’","generation_settings":{"frequency_penalty":0.0,"grammar":"","ignore_eos":false,"logit_bias":[],"mirostat":0,"mirostat_eta":0.10000000149011612,"mirostat_tau":5.0,"model":"models/mistral-7b-openorca.Q8_0.gguf","n_ctx":2222,"n_keep":0,"n_predict":256,"n_probs":0,"penalize_nl":true,"presence_penalty":0.0,"repeat_last_n":64,"repeat_penalty":1.100000023841858,"seed":4294967295,"stop":[],"stream":false,"temp":0.800000011920929,"tfs_z":1.0,"top_k":40,"top_p":0.949999988079071,"typical_p":1.0},"model":"models/mistral-7b-openorca.Q8_0.gguf","prompt":"In Japan, Golden gai as known as","stop":true,"stopped_eos":false,"stopped_limit":true,"stopped_word":false,"stopping_word":"","timings":{"predicted_ms":6803.0070000000005,"predicted_n":255,"predicted_per_second":37.4834246091471,"predicted_per_token_ms":26.678458823529414,"prompt_ms":260.124,"prompt_n":9,"prompt_per_second":34.59888360935554,"prompt_per_token_ms":28.90266666666667},"tokens_cached":265,"tokens_evaluated":10,"tokens_predicted":256,"truncated":false}%
ゴールデン街のことも知っている。
英語で知られていることはほぼ完璧に答えられるようだ。
とすると日本固有の知識をどう教えるかが課題か
Wikipediaでもいい気がするが