1
/
5

-Qiita記事Part.35-生成AI初心者がLlama 3について調べてみました英語ver.

こんにちは!ナイトレイインターン生の鈴木です。

こちらではナイトレイのエンジニアがどのようなことをしているか知っていただきたく、Qiitaに公開している記事をストーリーに載せています。

今回はWantedly&Qiita初登場のエンジニア アレックスさんの記事です!アレックスさんはデンマーク出身でナイトレイでのエンジニア業務からは想像できないキャリアを歩まれています。(こちらはどこかのタイミングでまた紹介させていただこうと考えております!)

少しでも私たちに興味を持ってくださった方は下に表示される募集記事もご覧ください↓↓

はじめに

初めまして!ナイトレイでエンジニアをしているデンマークから来ました、アレックスと申します。

新人エンジニアで、日本語でプログラミングと生成AIについて勉強しているところです。

ナイトレイは今「CITY INSIGHT Copilot」という人流データと生成AIを掛け合わせたサービスを開発しているところで、私も今AIとLLMについて勉強している最中です。
それでMetaが最近リリースした「Llama 3」について少し調べました。

さて、早速話題に入りましょう!今回の内容は英語ですが、どうぞよろしくお願い致します。

※CITY INSIGHT Copilotについて、最新の情報はこちら↓↓

CITY INSIGHT Copilot
CITY INSIGHTはロケーションビッグデータを用いて地域の生活者・旅行者を読み解くことができるサービスです。MaaS/まちづくり/スマートシティ/観光対策/DXなど様々なテーマで地域活性化を目指す全業種の皆様をWebツール提供を軸にサポートします。
https://cityinsight.nightley.jp/copilot


Overview of Llama 3

On April 15, 2024, Meta launched their latest LLM (Large Language Model) Llama 3, which has gained a lot of attention because of its open source development, along with its capabilities as an LLM, which I have looked into.

Llama 3 offers a big leap in capability compared to its predecessor. With it’s current 8 and 70 billion parameter models (8B and 70B), it can process significantly more information and generate more complex and nuanced text formats than Llama 2.

As can be seen from the below benchmarks, the 8B Llama 3 model is nearly as powerful as the biggest Llama 2 model at 70B parameters.

https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md

This enhanced processing power puts Llama 3 and Meta as a competitive force against other leading LLMs in the current market. Furthermore, according to Mark Zuckerberg, they are currently training their 405 billion parameter model.

Comparing Llama 3 to other models of similar scale, also shows how both the 8B and 70B model are very competitive. The 8B Llama 3 model beats both Gemma 7B and Mistral 7B in all of the below benchmarks. If you compare the 70B Llama 3 model to Claude 3 Sonnet, it again leads on all the benchmarks, and while it is around the same in terms of benchmarks compared to Gemini Pro, Llama 3 is open source as opposed to the closed source nature of Gemini and Claude.


https://ai.meta.com/blog/meta-llama-3/

On the topic of benchmarks

While doing research on Llama 3, I also learned a great deal about how LLMs are graded, and what the benchmarks actually mean in terms of capabilities.

  • MMLU (massive multitask language understanding)

This benchmark tests the general knowledge of a model, and is usually done zero-shot, which means that the model is tested on a new task. However on this benchmark, it seems that Llama 3 is tested on a 5-shot evaluation, which means that the model is tested on a task after first being exposed to five example tasks.

  • GPQA (Graduate-Level Google-Proof Q&A Benchmark)

“It’s a collection of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry. They are designed to be high-quality and extremely difficult.”

  • HumanEval (Code Generation)

This benchmark is specifically used to test the coding capabilities of a LLM

  • GSM-8K and MATH

These benchmarks both test the mathematic capabilities of an LLM in two different ways. GSM-8K tests basic math requiring multi-step reasoning, and MATH tests for competition-level math questions.

Quotes and insights from above are from the following article: https://medium.com/@ingridwickstevens/more-llm-acronyms-an-explainer-on-llama-3s-performance-benchmark-values-36722c6dcabb

Accessing and using Llama 3

Because of Llama 3’s open source nature, it is possible to use Llama 3 locally, if you have a computer that can handle it. To do this, you do need to first request access through Meta at https://llama.meta.com/llama-downloads/.

It is also possible to use Llama 3 through for example Amazon Bedrock or Hugging Face, where both the 8B and 70B models are available.

Usage in Meta AI

Perhaps the easiest way for general users to try using Llama 3 is through Meta’s own Meta AI. The release of Llama 3 also came with the announcement that Meta AI will be powered by Llama 3, and with the integration of Meta AI into Meta’s already existing services, such as Facebook, WhatsApp, Messenger and Instagram, it has a definite edge in terms of availability. With it being free to use, it also puts Meta as a direct competitor to services like OpenAI’s ChatGPT 4 which has a monthly subscription fee. While Meta AI is still only available in a limited selection of countries, it does show the potential of free AI services.

Open Source and broader implications

What differentiates Llama 3 significantly from its competitors is its commitment to open source development. Whereas for example ChatGPT, Claude and Gemini are kept closed source, Meta chose to make Llama 3 into an open source model, greatly increasing availability for users.

Furthermore, with Snowflake announcing the release of their new open source LLM “Arctic”, it seems like the trend of companies starting to offer open source models.

Llama 3’s release advances Meta’s position in the AI landscape, and also signals a potential shift in the trend of how AI technologies are developed and distributed.

References / 参照

  1. Introducing Meta Llama 3: The most capable openly available LLM to date
  2. Meta Llama 3 models are now available in Amazon Bedrock
  3. (Github) llama3/MODEL_CARD.md
  4. Meta Llama 3 - Github Main
  5. (Hugging Face) Welcome Llama 3 - Meta’s new open LLM
  6. Llama 3's Performance Benchmark Values Explained
  7. Snowflake Arctic: The Best LLM for Enterprise AI — Efficiently Intelligent, Truly Open
  8. Meta steps up AI battle with OpenAI and Google with release of Llama 3
  9. (Youtube) Meta claims Llama 3 is the most advanced open source AI yet l TechCrunch Minute
  10. (Youtube) Meta's Generative AI Head: How We Trained Llama 3
  11. TechCrunch Minute: Meta’s new Llama 3 models give open source AI a boost

最後に

私たちの会社、ナイトレイでは一緒に事業を盛り上げてくれるエンジニアを募集しています!
Web開発メンバー、GISエンジニア、サーバーサイドエンジニアなど複数ポジションで募集しているため、
「専攻分野を活かしたい」「横断的に様々な業務にチャレンジしてみたい」と言ったご要望も相談可能です!

✔︎ GISの使用経験があり、観光・まちづくり・交通・防災系などの分野でスキルを活かしてみたい
✔︎ ビッグデータの処理が好き!(達成感を感じられる)
✔︎ データベース構築、サーバー周りを触るのが好き
✔︎ 社内メンバーだけではなく顧客とのやり取りも実はけっこう好き
✔︎ 自社Webサービスの開発で事業の発展に携わってみたい
✔︎ 地理や地図が好きで、位置情報データにも興味を持っている

一つでも当てはまる方は是非お気軽に「話を聞きに行きたい」ボタンを押してください!

株式会社ナイトレイ's job postings

Weekly ranking

Show other rankings
Invitation from 株式会社ナイトレイ
If this story triggered your interest, have a chat with the team?