Skip to content

Instantly share code, notes, and snippets.

View leafspark's full-sized avatar

leafspark leafspark

View GitHub Profile
@leafspark
leafspark / convert_hf_nemotron_to_gguf_nemotron.py
Last active July 16, 2024 04:07
utility to convert failspy/Nemotron-4-340B-Instruct-SafeTensors to a format that can be used by fairydreaming/llama.cpp:nemotron
import argparse
from pathlib import Path
import json
from safetensors import safe_open
from safetensors.torch import save_file
import torch
from tqdm import tqdm
from collections import OrderedDict
import re
@leafspark
leafspark / models.js
Created May 10, 2024 01:01
OmniGPT web app deobsofucated
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([[6733], {
70172: function () {},
2001: function () {},
33779: function () {},
82258: function () {},
86497: function (e, a, l) {
"use strict";
l.r(a);
l.d(a, {