Skip to content

Instantly share code, notes, and snippets.

@sacdroid
sacdroid / echobuttonflow
Created October 16, 2020 19:03
Echo Button Nodered flow
[
{
"id":"cceabdf6.2a569",
"type":"tab",
"label":"echo button",
"disabled":false,
"info":""
},
{
"id":"693a399.f7535c8",
@sacdroid
sacdroid / yaml
Created August 31, 2021 19:01
tv time automation
sensor:
- platform: history_stats
name: TV Time Morning
entity_id: media_player.android_tv
state: 'playing'
type: time
start: "{{ now().replace(hour=6).replace(minute=0).replace(second=0) }}"
duration:
hours: 12
- platform: history_stats
@sacdroid
sacdroid / merge_qlora_with_quantized_model.py
Created April 10, 2024 00:36 — forked from ChrisHayduk/merge_qlora_with_quantized_model.py
Merging QLoRA weights with quantized model
"""
The code below combines approaches published by both @eugene-yh and @jinyongyoo on Github.
Thanks for the contributions guys!
"""
import torch
import peft