This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import gc | |
from typing import Dict, Any, Tuple, Optional | |
import comfy.model_management as model_management | |
import comfy.utils | |
class FastUNetMerger: | |
""" | |
Ultra-fast, low-memory UNet merger for ComfyUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem #Q2_k | |
set qversion=Q2_k | |
echo Quantizing "%fname%-%qversion%-%author%.gguf" | |
llama-quantize.exe "%output%-%mvers%-%author%.gguf" "%output%-%qversion%-%author%.gguf" %qversion% | |
timeout /t 3 /nobreak | |
rem #upload 2_k | |
echo uploading "%fname%-%qversion%-%author%.gguf" | |
huggingface-cli upload %reponame% "%output%-%qversion%-%author%.gguf" ./%fname%/"%fname%-%qversion%-%author%.gguf" --commit-message "uploaded %fname%-%qversion%-%author%.gguf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Minimal SafeTensors Converter | |
Converts PyTorch model files (.pt, .pth) to .safetensors format | |
Usage: python converter.py <input_path> [output_path] | |
by:marduk191 | |
""" | |
import os | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import os | |
import folder_paths | |
from transformers import AutoModel, AutoTokenizer | |
class InternLMXComposer2: | |
def __init__(self): | |
self.device = "cuda" if torch.cuda.is_available() else "cpu" | |
self.model = None | |
self.tokenizer = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Russian Roulette | |
## By marduk191 | |
## email: [email protected] | |
#comment these out if you use an external list below | |
#live[0]="You live bitch!" | |
#live[1]="You haven't died YET!" | |
#live[2]="Still alive asshole!..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hastebin CLI | |
#Add to ~/.bashrc | |
haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; } | |
alias copy="xclip -selection c" | |
##Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Nemo Action] | |
Name=bash2bin | |
Comment=Convert "%N" to binary | |
Exec=gnome-terminal --working-directory=%P -e "shc -f %F -o binary_out -r" | |
Icon-Name=gtk-execute | |
Selection=notnone | |
Extensions=sh;bash; | |
Quote=double |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Termbin installer | |
## By marduk191 | |
## email: [email protected] | |
printf "%s\n" "Checking dependencies" | |
if ! dpkg-query -W netcat | grep . | |
then printf "%s\n" "netcat isn't installed. Setting up netcat." | |
gksudo apt-get install netcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Kodi Repo tool frontend | |
## By marduk191 | |
## email: [email protected] | |
while getopts ":sf" flags; | |
do | |
case $flags in | |
s) | |
git add . | |
git commit -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<addon id="repository.yourname" name="Your Addons" version="0.1.2" provider-name="You"> | |
<extension point="xbmc.addon.repository" name="Your addons"> | |
<info compressed="false">https://raw.githubusercontent.com/you/your_repo_folder/master/addons.xml</info> | |
<checksum>https://raw.githubusercontent.com/you/your_repo_folder/master/addons.xml.md5</checksum> | |
<datadir zip="true">https://raw.githubusercontent.com/you/your_repo_folder/master/</datadir> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<summary lang="en_GB">Your Kodi Addons</summary> | |
<description lang="en_GB">Your Kodi repository description.</description> |
NewerOlder