Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stevexyz
stevexyz / normcore-llm.md
Created August 25, 2023 10:15 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@stevexyz
stevexyz / README.md
Created January 26, 2023 15:26 — forked from hofmannsven/README.md
Git Cheatsheet
@stevexyz
stevexyz / pythondebugtemplate.py
Created May 7, 2018 20:58
Python debug template
# from: http://web.archive.org/web/20121122043920/http://aymanh.com:80/python-debugging-techniques
# By default, the logging module prints critical, error and warning messages. To change this so that all levels are printed, use:
# $ ./your-program.py --logging=debug
# To send log messages to a file called debug.log, use:
# $ ./your-program.py --logging-level=debug --logging-file=debug.log
import logging
import optparse
@stevexyz
stevexyz / tensorflow_linux_sse41_sse42_avx_avx2_fma.md
Last active April 21, 2018 15:23 — forked from philster/tensorflow_macos_sse41_sse42_avx_avx2_fma_cuda.md
Build TensorFlow 1.3 with SSE4.1/SSE4.2/AVX/AVX2/FMA and NVIDIA CUDA support on macOS Sierra 10.12

Build TensorFlow 1.8 with SSE4.1/SSE4.2/AVX/AVX2/FMA on Linux

These instructions were inspired by Mistobaan's gist, ageitgey's gist, and mattiasarro's tutorial.

Background

I always encountered the following warnings when running my scripts using the precompiled TensorFlow Python package:

I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA

I realized I can make these warnings go away by compiling from source, in addition to impro