Skip to content

Instantly share code, notes, and snippets.

@kohya-ss
kohya-ss / mem_eff_safeopen.py
Last active September 13, 2025 06:23
メインメモリを消費しないsafetensorsファイル読み込み・保存
# License: Apache 2.0
from typing import Dict, Optional
import struct
import json
import numpy as np
import torch
@tienthanh2509
tienthanh2509 / run.sh
Created August 12, 2023 16:22
Termux SSHD for root user
export PATH=/data/data/com.termux/files/usr/bin:$PATH
sshd \
-D -dd \
-p 2222 -e