Model Card for Model ID
Model Details
Model Description
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Training parameters used
print("\nConfiguring QLoRA...")
LoRA configuration - high rank and alpha for significant adaptation
lora_config = LoraConfig( r=64, # LoRA rank - higher for more expressiveness lora_alpha=128, # LoRA alpha - higher for stronger adaptation target_modules=[ "c_attn", # Attention layers "c_proj", # Projection layers "c_fc" # Feed-forward layers ], lora_dropout=0.1, bias="none", task_type="CAUSAL_LM" )
Apply LoRA to model
model = get_peft_model(model, lora_config) model.print_trainable_parameters()
============================================================================
4. TRAINING CONFIGURATION
============================================================================
print("\nSetting up training...")
Data collator for language modeling
data_collator = DataCollatorForLanguageModeling( tokenizer=tokenizer, mlm=False # Causal LM, not masked LM )
Training arguments
training_args = TrainingArguments( output_dir="./molgpt_finetuned_qlora", num_train_epochs=12, per_device_train_batch_size=16, gradient_accumulation_steps=1, # Adjust if OOM learning_rate=2e-4, # Standard for LoRA weight_decay=0.01, logging_steps=10, save_strategy="epoch", save_total_limit=2, fp16=True, # Mixed precision for T4 GPU optim="adamw_torch", warmup_steps=50, lr_scheduler_type="cosine", report_to="none", # Disable wandb/tensorboard remove_unused_columns=False )
============================================================================
5. TRAIN MODEL
============================================================================
print("\nStarting training...") trainer = Trainer( model=model, args=training_args, train_dataset=tokenized_dataset, data_collator=data_collator )
Train
trainer.train() print("\nTraining completed!")
Uses
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- -