Browse Source

Add missing copyright header

Matthias Reso 1 năm trước cách đây
mục cha
commit
4913d3ad24

+ 3 - 0
demo_apps/csv2db.py

@@ -1,3 +1,6 @@
+# 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.
+
 import sqlite3
 import csv
 

+ 3 - 0
demo_apps/llama_chatbot.py

@@ -1,3 +1,6 @@
+# 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.
+
 import langchain
 from langchain.llms import Replicate
 

+ 3 - 0
demo_apps/llama_messenger.py

@@ -1,3 +1,6 @@
+# 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.
+
 import langchain
 from langchain.llms import Replicate
 

+ 3 - 0
demo_apps/streamlit_llama2.py

@@ -1,3 +1,6 @@
+# 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.
+
 import streamlit as st
 from langchain.llms import Replicate
 import os

+ 3 - 0
demo_apps/txt2csv.py

@@ -1,3 +1,6 @@
+# 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.
+
 import csv
 
 # Define the input and output file names

+ 3 - 0
eval/eval.py

@@ -1,3 +1,6 @@
+# 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.
+
 import argparse
 import json
 import logging

+ 3 - 0
eval/open_llm_eval_prep.sh

@@ -1,3 +1,6 @@
+# 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.
+
 #!/bin/bash
 
 # Prompt the user for the EVAL_PATH

+ 3 - 0
eval/open_llm_leaderboard/hellaswag_utils.py

@@ -1,3 +1,6 @@
+# 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.
+
 import datasets
 import re
 

+ 3 - 0
examples/hf_llama_conversion/compare_llama_weights.py

@@ -1,3 +1,6 @@
+# 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.
+
 import gc
 import glob
 import os

+ 3 - 0
examples/llama_guard/inference.py

@@ -1,3 +1,6 @@
+# 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.
+
 import fire
 from transformers import AutoTokenizer, AutoModelForCausalLM
 

+ 3 - 0
examples/plot_metrics.py

@@ -1,3 +1,6 @@
+# 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.
+
 import json
 import matplotlib.pyplot as plt
 import argparse

+ 3 - 0
src/llama_recipes/data/llama_guard/finetuning_data_formatter_example.py

@@ -1,3 +1,6 @@
+# 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.
+
 from finetuning_data_formatter import TrainingExample, Guidelines, Category, LlamaGuardPromptConfigs, LlamaGuardGenerationConfigs, ExplanationPosition, AugmentationConfigs, FormatterConfigs, create_formatted_finetuning_examples
 
 # Define a list of guidelines and training examples to match

+ 3 - 0
src/llama_recipes/tools/convert_hf_weights_to_llama.py

@@ -1,3 +1,6 @@
+# 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.
+
 import json
 import os
 from typing import List, Union