mirror of
https://github.com/ml-explore/mlx.git
synced 2024-09-15 10:04:00 +02:00
copyright + ack
This commit is contained in:
parent
a56e0888b8
commit
46a39e5b1f
30
ACKNOWLEDGMENTS.md
Normal file
30
ACKNOWLEDGMENTS.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
MLX leverages several third-party software, listed here together with
|
||||
their license copied verbatim.
|
||||
|
||||
## PocketFFT
|
||||
|
||||
Copyright (C) 2010-2018 Max-Planck-Society
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||
list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
* Neither the name of the copyright holder nor the names of its contributors may
|
||||
be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 ml-explore
|
||||
Copyright © 2023 Apple Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "mlx/mlx.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <iostream>
|
||||
#include "mlx/mlx.h"
|
||||
#include "time_utils.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/mlx.h"
|
||||
#include "time_utils.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import numpy as np
|
||||
|
||||
from time_utils import time_fn
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import time
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import argparse
|
||||
import mlx.core as mx
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import numpy as np
|
||||
import argparse
|
||||
import mlx.core as mx
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import argparse
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import argparse
|
||||
import math
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import time
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import argparse
|
||||
import mlx.core as mx
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import time
|
||||
|
||||
import mlx.core as mx
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/ops.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/stl.h>
|
||||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import mlx.core as mx
|
||||
from .mlx_sample_extensions import *
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
from mlx import extension
|
||||
from setuptools import setup
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import mlx.core as mx
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import mlx.core as mx
|
||||
import time
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "mlx/array.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <simd/vector.h>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <vecLib/BNNS/bnns.h>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <simd/vector.h>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <limits>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vecLib/BNNS/bnns.h>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/allocator.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "mlx/primitives.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/allocator.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#ifdef ACCELERATE_NEW_LAPACK
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <numeric>
|
||||
|
||||
#include "mlx/allocator.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/array.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cblas.h>
|
||||
|
||||
#include "mlx/array.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cmath>
|
||||
|
||||
namespace mlx::core {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
|
||||
namespace mlx::core {
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <numeric>
|
||||
|
||||
#include "mlx/3rdparty/pocketfft.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/backend/common/utils.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "mlx/backend/common/copy.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/common/threefry.h"
|
||||
|
||||
namespace mlx::core::random {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/allocator.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/metal/allocator.h"
|
||||
#include "mlx/backend/metal/metal.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "mlx/backend/metal/copy.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/backend/common/copy.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Metal/Metal.hpp>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/primitives.h"
|
||||
|
||||
namespace mlx::core {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <numeric>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
|
||||
template <typename T>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_atomic>
|
||||
#include <metal_simdgroup>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_atomic>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_integer>
|
||||
#include <metal_math>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
#include "mlx/backend/metal/kernels/conv_params.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
template <int NDIM>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
#include "mlx/backend/metal/kernels/utils.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __METAL__
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_math>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
#include "mlx/backend/metal/kernels/gemm/gemm.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_simdgroup>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_simdgroup>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_stdlib>
|
||||
#include <metal_simdgroup>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_atomic>
|
||||
#include <metal_texture>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include "mlx/backend/metal/kernels/utils.h"
|
||||
|
||||
static constexpr constant uint32_t rotations[2][4] = {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_atomic>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_atomic>
|
||||
#include <metal_simdgroup>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_math>
|
||||
#include <metal_simdgroup>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_atomic>
|
||||
#include <metal_common>
|
||||
#include <metal_simdgroup>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
#include "mlx/backend/metal/kernels/bf16.h"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#include <metal_integer>
|
||||
#include <metal_math>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright © 2023 Apple Inc.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <metal_math>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue