From a549cb07478886d43ffad61c1e5171b74705a8a6 Mon Sep 17 00:00:00 2001 From: Igor Kasianenko Date: Mon, 27 Oct 2025 10:46:34 +0000 Subject: [PATCH] update license for new recipes that use Llama 3 or newer --- 3p-integrations/vllm/inference.py | 2 +- end-to-end-use-cases/RAFT-Chatbot/config.py | 2 +- end-to-end-use-cases/RAFT-Chatbot/raft_utils.py | 2 +- .../inference/cloud/azure/chat_azure_api_benchmark.py | 2 +- .../benchmarks/inference/on_prem/vllm/chat_vllm_benchmark.py | 2 +- .../inference/on_prem/vllm/pretrained_vllm_benchmark.py | 2 +- end-to-end-use-cases/coding/text2sql/csv2db.py | 2 +- end-to-end-use-cases/coding/text2sql/txt2csv.py | 2 +- getting-started/finetuning/datasets/custom_dataset.py | 2 +- getting-started/finetuning/finetuning.py | 2 +- getting-started/finetuning/quickstart_peft_finetuning.ipynb | 2 +- .../local_inference/chat_completion/chat_completion.py | 2 +- getting-started/inference/local_inference/inference.py | 2 +- getting-started/responsible_ai/llama_guard/__init__.py | 3 --- 14 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 getting-started/responsible_ai/llama_guard/__init__.py diff --git a/3p-integrations/vllm/inference.py b/3p-integrations/vllm/inference.py index 48bf46bd5..c56d8d2cb 100644 --- a/3p-integrations/vllm/inference.py +++ b/3p-integrations/vllm/inference.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import uuid import asyncio diff --git a/end-to-end-use-cases/RAFT-Chatbot/config.py b/end-to-end-use-cases/RAFT-Chatbot/config.py index 8b9115f7d..60152f40f 100644 --- a/end-to-end-use-cases/RAFT-Chatbot/config.py +++ b/end-to-end-use-cases/RAFT-Chatbot/config.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import yaml diff --git a/end-to-end-use-cases/RAFT-Chatbot/raft_utils.py b/end-to-end-use-cases/RAFT-Chatbot/raft_utils.py index ed3528e0d..875f77714 100644 --- a/end-to-end-use-cases/RAFT-Chatbot/raft_utils.py +++ b/end-to-end-use-cases/RAFT-Chatbot/raft_utils.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import os import logging diff --git a/end-to-end-use-cases/benchmarks/inference/cloud/azure/chat_azure_api_benchmark.py b/end-to-end-use-cases/benchmarks/inference/cloud/azure/chat_azure_api_benchmark.py index d310a4cb9..bb653131b 100644 --- a/end-to-end-use-cases/benchmarks/inference/cloud/azure/chat_azure_api_benchmark.py +++ b/end-to-end-use-cases/benchmarks/inference/cloud/azure/chat_azure_api_benchmark.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import csv import json diff --git a/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/chat_vllm_benchmark.py b/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/chat_vllm_benchmark.py index 30b2765f8..167c84a08 100644 --- a/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/chat_vllm_benchmark.py +++ b/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/chat_vllm_benchmark.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import csv import json diff --git a/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/pretrained_vllm_benchmark.py b/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/pretrained_vllm_benchmark.py index 3d74cd4e3..fd1594a31 100644 --- a/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/pretrained_vllm_benchmark.py +++ b/end-to-end-use-cases/benchmarks/inference/on_prem/vllm/pretrained_vllm_benchmark.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import csv import json diff --git a/end-to-end-use-cases/coding/text2sql/csv2db.py b/end-to-end-use-cases/coding/text2sql/csv2db.py index cd6414a91..44ad0ef0a 100644 --- a/end-to-end-use-cases/coding/text2sql/csv2db.py +++ b/end-to-end-use-cases/coding/text2sql/csv2db.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import sqlite3 import csv diff --git a/end-to-end-use-cases/coding/text2sql/txt2csv.py b/end-to-end-use-cases/coding/text2sql/txt2csv.py index 778bf21e8..4470d2047 100644 --- a/end-to-end-use-cases/coding/text2sql/txt2csv.py +++ b/end-to-end-use-cases/coding/text2sql/txt2csv.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import csv diff --git a/getting-started/finetuning/datasets/custom_dataset.py b/getting-started/finetuning/datasets/custom_dataset.py index 3bfcc0b10..848d4223e 100644 --- a/getting-started/finetuning/datasets/custom_dataset.py +++ b/getting-started/finetuning/datasets/custom_dataset.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. # For dataset details visit: https://huggingface.co/datasets/samsum diff --git a/getting-started/finetuning/finetuning.py b/getting-started/finetuning/finetuning.py index 1f455f124..d34579da8 100644 --- a/getting-started/finetuning/finetuning.py +++ b/getting-started/finetuning/finetuning.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import fire from llama_cookbook.finetuning import main diff --git a/getting-started/finetuning/quickstart_peft_finetuning.ipynb b/getting-started/finetuning/quickstart_peft_finetuning.ipynb index 19044bdd3..79096fee3 100644 --- a/getting-started/finetuning/quickstart_peft_finetuning.ipynb +++ b/getting-started/finetuning/quickstart_peft_finetuning.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "source": [ "Copyright (c) Meta Platforms, Inc. and affiliates.\n", - "This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.\n", + "This software may be used and distributed according to the terms of the Llama 3 Community License Agreement.\n", "\n", "\"Open" ] diff --git a/getting-started/inference/local_inference/chat_completion/chat_completion.py b/getting-started/inference/local_inference/chat_completion/chat_completion.py index 740ea2add..b627083b7 100644 --- a/getting-started/inference/local_inference/chat_completion/chat_completion.py +++ b/getting-started/inference/local_inference/chat_completion/chat_completion.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. # from accelerate import init_empty_weights, load_checkpoint_and_dispatch diff --git a/getting-started/inference/local_inference/inference.py b/getting-started/inference/local_inference/inference.py index 277b744fa..0323a1c9d 100644 --- a/getting-started/inference/local_inference/inference.py +++ b/getting-started/inference/local_inference/inference.py @@ -1,5 +1,5 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. +# This software may be used and distributed according to the terms of the Llama 3 Community License Agreement. import os import sys diff --git a/getting-started/responsible_ai/llama_guard/__init__.py b/getting-started/responsible_ai/llama_guard/__init__.py deleted file mode 100644 index b193f6796..000000000 --- a/getting-started/responsible_ai/llama_guard/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement. -