Washedashore commited on
Commit
58d8d8a
·
verified ·
1 Parent(s): 0266d6e

Update .vscode/transform

Browse files
Files changed (1) hide show
  1. .vscode/transform +4 -1
.vscode/transform CHANGED
@@ -44,4 +44,7 @@ class SimpleMLLM(torch.nn.Module):
44
  # Initialize the model
45
  model = SimpleMLLM(text_model, vision_model)
46
 
47
- # You would then need to implement data loading, training loop, etc.
 
 
 
 
44
  # Initialize the model
45
  model = SimpleMLLM(text_model, vision_model)
46
 
47
+ import math
48
+
49
+ eval_results = trainer.evaluate()
50
+ print(f"Perplexity: {math.exp(eval_results['eval_loss']):.2f}")# You would then need to implement data loading, training loop, etc.