Skip to content

Instantly share code, notes, and snippets.

@mtisz
mtisz / deploy.yaml
Last active March 29, 2024 20:27
akash-axolotl
---
version: "2.0"
services:
service-1:
image: winglian/axolotl:main-py3.11-cu121-2.2.1
expose:
- port: 80
as: 80
to:
- global: true
@mtisz
mtisz / convert.py
Created March 21, 2024 18:58 — forked from chu-tianxiang/convert.py
Convert grok-1 weight to torch
import numpy as np
import torch
import jax
from tqdm import tqdm
from model import LanguageModelConfig, TransformerConfig, QuantizedWeight8bit as QW8Bit
from runners import InferenceRunner, ModelRunner, sample_from_model
CKPT_PATH = "./checkpoints"
@mtisz
mtisz / start_miner.py
Last active October 22, 2021 04:53
A Python 3 script to run an Ethereum miner with self-monitoring and self-restart
import subprocess as sp
import logging
from abc import ABC
import time
from concurrent.futures import ThreadPoolExecutor
"""
Your terminal command goes here
"""