Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions android/Torchchat/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

plugins {
id("com.android.application")
}
Expand Down
9 changes: 8 additions & 1 deletion android/Torchchat/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.


# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
Expand All @@ -18,4 +25,4 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
6 changes: 6 additions & 0 deletions android/Torchchat/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.1.0" apply false
Expand Down
6 changes: 6 additions & 0 deletions android/Torchchat/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
Expand Down
6 changes: 6 additions & 0 deletions android/Torchchat/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

#Thu Apr 25 21:54:24 PDT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
Expand Down
6 changes: 6 additions & 0 deletions build/model_aoti.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

import torch
import torch.nn as nn
from torch._inductor.codecache import AsyncCompile
Expand Down
6 changes: 6 additions & 0 deletions build/model_et.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

import torch
import torch.nn as nn
from executorch.extension.pybindings import portable_lib as exec_lib
Expand Down
6 changes: 6 additions & 0 deletions export_et_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

import torch
from build.model import apply_rotary_emb, Attention

Expand Down
6 changes: 6 additions & 0 deletions quantization/qops.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from typing import Optional

import torch
Expand Down
8 changes: 8 additions & 0 deletions runner/run.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.

This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
*/

/* Inference for Llama-2 Transformer model in pure C++ */
#include <ctype.h>
#include <math.h>
Expand Down
6 changes: 6 additions & 0 deletions scripts/patch_triton.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

#!/usr/bin/env python3
# Delete me after triton is updated past https://github.com/triton-lang/triton/pull/3564

Expand Down
7 changes: 7 additions & 0 deletions scripts/updown.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.


import argparse
import os
import re
Expand Down
8 changes: 8 additions & 0 deletions unsupported/llama2.c/runner-aoti/run.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

/* Inference for Llama-2 Transformer model in pure C */
/* this uses the same logic regardless of AOTI OR ET */
/* but requires different data types - ATen vs ETen */
Expand Down
7 changes: 7 additions & 0 deletions unsupported/llama2.c/runner/run.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.

This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
*/

/* Inference for Llama-2 Transformer model in pure C */

#include <stdint.h>
Expand Down