Coder Social home page Coder Social logo

distanceexperiments's Introduction

Experiments with metrics in embedding spaces

For use in the Semantic Kernel and elsewhere.

To check the hardware supports the necessary features, run list_avx_features.sh and look for "avx512_bf16" and "avx512_fp16"

Prepare an Ubuntu machine to run these kernels

  1. Add the following lines to `/etc/apt/sources.list.d/llvm-latest.list
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main
  1. Install prerequisites to set up llvm repos
apt install wget gnupg
  1. Add llvm repo key to apt (note that apt-key is deprecated, I should update this)
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
  1. Update list of available packages and install clang
apt update
apt install clang-16 lldb-16 lld-16
  1. cmake and conan are used here, but oneCloud machines already have cmake and conda installed. If it's not
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
chmod a+x Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
./Miniconda3-py310_23.3.1-0-Linux-x86_64.sh -b
export PATH=$HOME/miniconda3/bin:$PATH
conda update conda
  1. Use a conan profile similar to this:
[settings]
arch=x86_64
build_type=Release
os=Linux
compiler=clang
compiler.libcxx=libstdc++
compiler.version=16

[conf]
tools.build:compiler_executables={"c":"clang-16", "cpp":"clang++-16"}

distanceexperiments's People

Contributors

rgesteve avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.