NavigationContentFooter
Jump toSuggest an edit

Understanding the Llama-3-70b-instruct model

Reviewed on 03 December 2024Published on 28 May 2024

Model overview

AttributeDetails
ProviderMeta
Compatible InstancesH100 (FP8)
Context size8192 tokens

Model names

meta/llama-3-70b-instruct:fp8

Compatible Instances

  • H100 (FP8)

Model introduction

Meta’s Llama 3 is an iteration of the open-access Llama family. Llama 3 was designed to match the best proprietary models, enhanced by community feedback for greater utility and responsibly spearheading the deployment of LLMs. With a commitment to open-source principles, this release marks the beginning of a multilingual, multimodal future for Llama 3, pushing the boundaries in reasoning and coding capabilities.

Why is it useful?

We are dedicated to supporting Meta’s commitment to open(weight) AI and its mission, through integration into the Scaleway ecosystem. Llama 3 marks a significant advancement over Llama 2 and other available models due to several enhancements:

Llama-3-70b-instruct offers seamless integration with chat applications and customer service platforms, facilitating smooth communication between businesses and their customers. Its robust performance in natural language understanding, enhanced by superior common sense reasoning, enriches user experience and boosts customer satisfaction.

In particular, this model:

  • Offers a doubled context length of 8,192 tokens, compared to its predecessor.
  • Uses a more extensive token vocabulary, featuring 128,000 tokens, allowing for more efficient language encoding.
  • Demonstrates a reduction in false “refusals” by less than one-third compared to Llama 2.

How to use it

Sending Managed Inference requests

To perform inference tasks with your Llama-3 deployed at Scaleway, use the following command:

curl -s \
-H "Authorization: Bearer <IAM API key>" \
-H "Content-Type: application/json" \
--request POST \
--url "https://<Deployment UUID>.ifr.fr-par.scaleway.com/v1/chat/completions" \
--data '{"model":"meta/llama-3-70b-instruct:fp8", "messages":[{"role": "user","content": "Sing me a song about Xavier Niel"}], "max_tokens": 500, "top_p": 1, "temperature": 0.7, "stream": false}'

Make sure to replace <IAM API key> and <Deployment UUID> with your actual IAM API key and the Deployment UUID you are targeting.

Tip

The model name allows Scaleway to put your prompts in the expected format.

Note

Ensure that the messages array is properly formatted with roles (system, user, assistant) and content.

Receiving Inference responses

Upon sending the HTTP request to the public or private endpoints exposed by the server, you will receive inference responses from the managed Managed Inference server. Process the output data according to your application’s needs. The response will contain the output generated by the LLM model based on the input provided in the request.

Note

Despite efforts for accuracy, the possibility of generated text containing inaccuracies or hallucinations exists. Always verify the content generated independently.

Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway