Skip to content

Instantly share code, notes, and snippets.

View wentout's full-sized avatar
😎
building teleport

Viktor Vershanskiy wentout

😎
building teleport
View GitHub Profile
@wentout
wentout / gfx90c.md
Last active July 31, 2026 23:01
Technical Report: Forcing an Unsupported AMD APU (gfx90c) to Run Native Flux 9B FP8 and Qwen Image Edit Safely and Responsively

Executive Summary

Conventional community consensus states that running modern, multi-billion parameter diffusion models like Flux Klein 9B or vision-language models like Qwen Image Edit requires a dedicated desktop GPU with 16GB–24GB of dedicated VRAM. Attempting this on an unsupported integrated consumer APU usually results in heavy system lockups—where window animations freeze and text input pointers in textareas and editors become completely unresponsive—followed by immediate memory segmentation faults.

This report outlines how to successfully bypass these limitations on an AMD Ryzen mobile processor. By precisely configuring Linux kernel parameters, exploiting an enterprise driver disguise, isolating CPU scheduling threads, tuning PyTorch’s memory cache flags, and leveraging a strategic hybrid node architecture, we achieved a massive paradigm shift: **shrinking a grueling 2-hour CPU rendering process for Qwen down to a responsive ~30-minute GPU run, stabilizing Flux memory consumption into a

@wentout
wentout / CommonFields.js
Last active March 17, 2026 20:37
Common Fields between different objects
'use strict';
const data = {
linked: 5
};
class Destination {
constructor(source) {
const descriptor = Object
.getOwnPropertyDescriptor(source, 'linked');
@wentout
wentout / NnominalTypes.js
Last active November 14, 2025 08:23
Nominal Typing for JS
// 1. having strict names for Constructors
const MyConstructorSymbol = Symbol('My Constructor');
const MyConstructor = function () {
Reflect.defineProperty(this, 'tesingTheName', {
get () {
return this.constructor.name;
}
});
};
@wentout
wentout / MyHTMLElement.html
Last active August 22, 2025 09:00
HTMLElement Proxy
<html>
<head>
<style>
#some {
padding: auto;
text-align: center;
border: 1px solid red;
min-height: 100px;
font-size: 7vh;
@wentout
wentout / CallbackHellBindLuck.js
Last active August 27, 2026 00:44
Callback Hell Error-First Callback Convention .bind & .luck solution
'use strict';
/**
AI explanation from Qwen coder 2.5
In Node.js, the conventional way
to perform a null check in a callback function,
particularly for error handling,
involves checking the first argument of the callback.
@wentout
wentout / InstanceWhichIsBothCallableAndNewableFromItself.js
Last active August 20, 2025 13:20
all you need to know about Constructional Objects in JavaScript
'use strict';
const ogp = Object.getPrototypeOf;
const ohp = Object.prototype.hasOwnProperty;
const Cstr = function () {
// console.log(this.value);
const root = this;
const main = this.constructor;
const isItSelf = main === Cstr;
@wentout
wentout / AwaitedAssign.js
Created April 7, 2025 13:52
Awaited Assign
'use strict';
const myObj = {};
let field = 123;
Object.defineProperty( myObj, 'field', {
async get () {
return new Promise( ( resolve, reject ) => {
setTimeout( () => {
resolve( field );
@wentout
wentout / StructSizeComparison_Array.js
Last active April 10, 2025 11:52
Struct Sizes Comparison
'use strict';
const count = 1_000_000_000;
console.time('finished in');
const myArr = [];
let i = 0;
@wentout
wentout / AwaitNew.ts
Created April 7, 2025 13:43
Native Await New
'use strict';
class MyPromise<T> extends Promise<T> {
constructor(handler: (
resolve: (value: T) => unknown,
reject: () => unknown) => void
) {
super(handler);
}
}
@wentout
wentout / PubSubOnWrappers.js
Last active March 8, 2025 00:02
Publisher Subscriber pattern made via Wrapper
'use strict';
// for testing this code please use the following command
//
// node PubSubOnWrappers.js | grep stack
//
// to see if stack size exceed
//
// for huge amount of async subs in Node.js we are receiving
// "Exception in PromiseRejectCallback"