CoolFace
Modelpublic

AdityaNarayan/GLM-4.6-CPT-LoRA-HyperSwitch-v2

sourceHugging Faceupdated 10mo agoView on Hugging Face
1likes
Model Card

GLM-4.6-CPT-LoRA-HyperSwitch-v1

A LoRA fine-tuned model based on zai-org/GLM-4.6 specialized for the Hyperswitch Rust codebase. This model excels at understanding payment processing patterns, Hyperswitch architecture, and Rust development practices.

๐ŸŽฏ Model Description

This LoRA adapter was trained on 16,731 samples extracted from the Hyperswitch codebase to enhance code understanding, explanation, and generation within the payment processing domain.

  • โ€”Base Model: zai-org/GLM-4.6
  • โ€”Training Type: Causal Language Modeling (CLM) with LoRA
  • โ€”Domain: Payment Processing, Rust Development
  • โ€”Specialization: Hyperswitch codebase patterns and architecture

๐Ÿ“Š Training Details

LoRA Configuration

yaml
r: 16                   # LoRA rank
alpha: 32              # LoRA alpha (2*r)
dropout: 0.05           # LoRA dropout
  target_modules:
    - "q_proj"   
    - "k_proj"    
    - "v_proj"   
    - "o_proj"    
  
  exclude_modules:
    - "block_sparse_moe"  
    - "w1"                
    - "w2"               
    - "w3"               
    - "gate"             

Training Hyperparameters

  • โ€”Epochs: 5
  • โ€”Learning Rate: 2e-4 (cosine schedule)
  • โ€”Hardware: 8 x NVIDIA H200

๐Ÿ› ๏ธ Technical Specifications

  • โ€”Precision: bfloat16
  • โ€”Inference Speed: Optimized with Flash Attention 2

๐Ÿ™ Acknowledgments

  • โ€”Zai Team for the excellent GLM 4.6 base model
  • โ€”Hyperswitch Team for the open-source payment processing platform
  • โ€”Hugging Face for the transformers and PEFT libraries

๐Ÿ“ž Citation

bibtex
@misc{GLM-4.6-CPT-LoRA-HyperSwitch-v2,
  title={AdityaNarayan/GLM-4.6-CPT-LoRA-HyperSwitch-v2},
  author={Aditya Narayan},
  year={2024},
  publisher={Hugging Face},
  url={https://huggingface.co/AdityaNarayan/GLM-4.6-CPT-LoRA-HyperSwitch-v2}
}