Skip to content

Instantly share code, notes, and snippets.

@powderluv
powderluv / tfcompile.ipynb
Created January 15, 2020 23:05 — forked from carlthome/tfcompile.ipynb
Example of how to use XLA AOT via tfcompile to build a Keras model into a shared library.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@powderluv
powderluv / MobileNet-v3-large-visualization.md
Created January 17, 2021 17:44 — forked from bjacob/MobileNet-v3-large-visualization.md
Matmul shapes in MobileNet-v3-large, EfficientNet-Lite2 and EfficientNet-B4, 8bit quantized, by decreasing CPU time % on Pixel4

Visualization of the MobileNet-v3-large shapes (ordered similarly by decreasing time percentage, so the most important shapes come first).

mobilenet-v3-large-matmuls-ordered

@powderluv
powderluv / gist:f7e62938209dc3479ca86553df608bc1
Created February 20, 2025 03:11
Bert Fine Tune on 7900XTX
# Training data consist of X=(str, str), y=float:
from sklearn.model_selection import train_test_split
X = [
["Hello World!", "Good morning!"],
["It is raining", "It is cold"],
["Beautiful city beside mountain", "Quiet street in downtown area"],
["AI is the future", "AI is just a tool"],
["This application is great", "software is the problem"],
["Hello World!", "Good morning!"],
["It is raining", "It is cold"],