Skip to content

Instantly share code, notes, and snippets.

View eniktab's full-sized avatar

Eliatan Niktab eniktab

View GitHub Profile
@eniktab
eniktab / triton-blackwell-gist.md
Created May 18, 2026 04:26
Two env vars that fix Triton on NVIDIA Blackwell sm_121 (GB10 / DGX Spark / consumer Blackwell) with PyTorch 2.9

Triton on NVIDIA Blackwell sm_121 (GB10 / DGX Spark): the two env vars that fix it

PyTorch 2.9 advertises max compute capability sm_120. Blackwell consumer / GB10 parts report sm_121. Triton (and anything that lowers through it — torch.compile, FlashAttention, hand-written kernels) fails with "Triton Error [CUDA]: no kernel image is available for execution on the device".

The fix is two env vars plus removing one that often appears in "workarounds":

@eniktab
eniktab / ColabIdelness.js
Created November 25, 2020 21:19
Stop Colab disconnection due to idleness
function KeepClicking(){
console.log("Clicking");
document.querySelector("colab-connect-button").click()
}
setInterval(KeepClicking,60000)
@eniktab
eniktab / SaveFileOnBucket
Created November 19, 2020 14:36
Save files from colab on gcloud
from google.colab import auth
auth.authenticate_user()
project_id = '[your Cloud Platform project ID]'
!gcloud config set project {project_id}
!gsutil cp /tmp/to_upload.txt gs://{bucket_name}/
@eniktab
eniktab / RemoveManyManyFiles.sh
Last active November 18, 2020 03:32
Remove myriad of files
find . -maxdepth 1 -name "*.jpg" -print0 | xargs -0 rm
@eniktab
eniktab / SshToColab.py
Created November 18, 2020 00:49
shh to Google Colab notebook
#get a Token
# Install colab_ssh
!pip install colab_ssh --upgrade
from colab_ssh import launch_ssh
launch_ssh('Token', 'SOME_PASSWORD')
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%name%'