Text Generation
PEFT
Safetensors
qlora
stiefel-manifold
continuous-reasoning
float32-precision
cag-truth-gate
pmtp-zero-token
polydim-einsof
conversational
Instructions to use Polydim-Einsof/einsof2-qlora-dual-t4-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Polydim-Einsof/einsof2-qlora-dual-t4-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-qlora-dual-t4-adapter") - Notebooks
- Google Colab
- Kaggle
einsof2-qlora-dual-t4-adapter
POLYDIM-EINSOF QLoRA 2027.4.0 Certified Adapter (float32 Precision)
This repository hosts an authentic GPU-trained PEFT LoRA adapter for Qwen/Qwen2.5-1.5B-Instruct, upgraded to torch.float32 precision with FP64 Order-4 Stiefel Polar Retraction to eliminate the discrete bfloat16 roundoff floor.
Empirical Silicon Invariants (Exit Code 0)
- Base Architecture:
Qwen/Qwen2.5-1.5B-Instruct(Family:qwen) - PEFT Type:
LORA(Rank: 16, Alpha: 32) - Storage Dtype:
torch.float32(100% of adapter tensors) - Trainable Tensors: 392 total (196
lora_Bprojection factors) - Max Stiefel Isometry Defect (FP32):
4.62e-08(Bound: <= 1.0e-5) - Horner Polar Projection Defect (FP64):
8.88e-16(Bound: <= 1.0e-15) - Frobenius Adaptation Energy Drift: < 0.01% (Preserved: s = ||B||_F / sqrt(r))
- Closed-World Gate: 1-Token
<|cag_truth|>(token_id: 151667)
Usage via Hugging Face PEFT
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "Qwen/Qwen2.5-1.5B-Instruct"
adapter_id = "Polydim-Einsof/einsof2-qlora-dual-t4-adapter"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float16,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)
print(f"Loaded {adapter_id} successfully!")
Integrated Core
This repository includes the complete qlora_2027_core/ Python package featuring:
core/stiefel_riemannian.py: Order-4 Polar Retraction & Theorem 32 Riemannian Weight Decaycore/procrustes_splice.py: Procrustes Impedance Projector & Layer L-2 Splicecore/cag_activation_hook.py: Native Chat Template Preservation & -inf Logits Processortraining/einsof_qlora_2027_trainer.py: Turing sm_75 safe Trainer
- Downloads last month
- 101
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-qlora-dual-t4-adapter")