OMG-hybridOMGa ⚡🧠🔮♻️
Ultimate Hybrid LoRA Suite — LoRA, DoRA, QLoRA, LoRA+, rsLoRA ve OMGa'nın tam eğitim motoruyla birleşimi.
Kurulum
# Temel kurulum (sadece torch + transformers + accelerate)
pip install omg-hybridomga
# Tam kurulum (bitsandbytes, peft, trl, datasets dahil)
pip install "omg-hybridomga[full]"
# Her şey dahil
pip install "omg-hybridomga[all]"
Özellikler
LoRA Katmanları
| Yöntem | Açıklama | Kaynak |
|---|---|---|
| LoRA | Standard Low-Rank Adaptation | Hu et al., 2021 |
| DoRA | Weight-Decomposed LoRA | Liu et al., 2024 |
| QLoRA | 4/8-bit quantized base weights | Dettmers et al., 2023 |
| LoRA+ | Separate LRs for A and B matrices | Hayou et al., 2024 |
| rsLoRA | Rank-Stabilized LoRA | Kalajdzievski, 2023 |
| OMGa ★ | OMG Adaptive LoRA — per-token gate, dual-rank | — |
Bellek & VRAM Yönetimi
MemoryMonitor— daemon thread VRAM watchdogVRAMGuard— otomatik batch küçültme + akıllı kurtarmaMorphicMemory™— Markov tahmini + tensor reincarnation- 2-bit NF2 quantization (bitsandbytes gerektirmez)
Hız & Derleme
Accelerator— grad accum, AMP, clip, fused optimizerCrystalCore™— runtime kernel kristalizasyonuTritonKernels— RMSNorm, SwiGLU Triton fallbacktorch.compile— fullgraph + cache desteği
Optimizer & Scheduler
EMA/SWA— Exponential/Stochastic Weight AveragingSpectraOptimizer™— frekans-domain adaptive optimizerResonanceScheduler™— gradient-spectrum self-tuning LRWarmupCosineScheduler/WarmupLinearScheduler
Gradient İyileştirme
GradientHarmonics™— wavelet gradient processingNeuralProfiler™— LSTM-based OOM/explode predictionLossSpikeDetector— spike tespiti + LR müdahalesi
Hızlı Başlangıç
Sadece LoRA Katmanı
from omg_hybridomga import HybridConfig, apply_hybrid_lora
cfg = HybridConfig(method="omga", rank=16, alpha=32)
model = apply_hybrid_lora(model, cfg)
Tam Eğitim Motoru
from omg_hybridomga import HybridOMGa
engine = HybridOMGa(
"meta-llama/Llama-3.2-3B",
rank=16,
method="omga",
ema=True,
swa=True,
crystal_core=True,
priority_prop=True,
)
model, tokenizer = engine.load()
trainer = engine.get_trainer(dataset)
engine.train(trainer)
LoRA Kaydet / Yükle
from omg_hybridomga import save_hybrid_lora, load_hybrid_lora
save_hybrid_lora(model, "./my_lora_weights")
model = load_hybrid_lora(model, "./my_lora_weights")
Ortam Kontrolü
from omg_hybridomga import check_environment
check_environment()
Opsiyonel Bağımlılıklar
| Grup | Kurulum | İçerik |
|---|---|---|
full |
pip install "omg-hybridomga[full]" |
bitsandbytes, peft, trl, datasets |
triton |
pip install "omg-hybridomga[triton]" |
Triton kernel desteği |
flash |
pip install "omg-hybridomga[flash]" |
Flash Attention 2 |
deepspeed |
pip install "omg-hybridomga[deepspeed]" |
DeepSpeed ZeRO |
all |
pip install "omg-hybridomga[all]" |
Hepsi |
Gereksinimler
- Python ≥ 3.9
- PyTorch ≥ 2.1.0
- transformers ≥ 4.40.0
- accelerate ≥ 0.27.0
Lisans
Apache 2.0 — Ayrıntılar için LICENSE dosyasına bakın.
Metadata
Release files for omg-hybridomga 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omg_hybridomga-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for omg_hybridomga-1.0.1-py3-none-any.whl |
Release files / omg_hybridomga-1.0.1-py3-none-any.whl
| Download URL | omg_hybridomga-1.0.1-py3-none-any.whl |
|---|---|
| Size | 44.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bba9e3b539d511e685f59e5f72e24119fe28f5d2d9fb61aa319e8090b4ab1a9e
|
|
BLAKE2b-256 checksum How to use checksums |
d33ca10c83e26c0f3d878ffe55ac4a0b28e1a2fc212d181798427e0a10ea153f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for omg-hybridomga 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.