Skip to content

Instantly share code, notes, and snippets.

View SALMANKHANPM's full-sized avatar
💭
Learning ....

P.M.SALMAN KHAN SALMANKHANPM

💭
Learning ....
View GitHub Profile
@shaltielshmid
shaltielshmid / train_math_nemo.py
Last active February 6, 2026 04:11
NeMo-Framework training code from the paper "Learning to Reason: Training LLMs with GPT-OSS or DeepSeek R1 Reasoning Traces", for training Mistral-Nemo-Base-2407 or nvidia/NVIDIA-Nemotron-Nano-12B-v2-Base on reasoning data, generated either via gpt-oss-120b or DeepSeek-R1-0528
MODEL_TO_USE = "NanoV2" # or "MistralNemo"
IMPORT_MODEL_AND_DATA = False # set to True to import the model from HF hub, only needs to be run once
REASONING_STYLE = "gpt_oss_120b" # or DeepSeek_R1_0528
NUM_NODES = 2
GPUS_PER_NODE = 8
import nemo_run as run
from nemo.collections import llm
from nemo.collections.llm.gpt.model.mistral import MistralModel, MistralNeMoConfig12B
from nemo.collections.llm.gpt.model.ssm import MambaModel, NemotronNano12Bv2
@xenova
xenova / tiktoken-to-hf.ipynb
Last active February 8, 2026 23:15
Convert tiktoken tokenizers to the Hugging Face tokenizers format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active March 1, 2026 15:07
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@SebaUbuntu
SebaUbuntu / README.md
Last active December 23, 2025 02:49
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@msfjarvis
msfjarvis / sepolicy.md
Last active November 27, 2025 00:11
How to write sepolicy to fix a denial