File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2121from cerebrosllmutils .llm_utils import (
2222 prepare_data ,
2323 InterleavedRoPE ,
24- Perplexity ,
24+ SparsePerplexity ,
2525 GatedMergeLayer ,
2626 ChunkedAttentionBlock ,
2727 MambaBlock ,
409409meta_trial_number = 42 # irrelevant unless in distributed training
410410
411411# Custom metric: Perplexity:
412- perplexity_metric = Perplexity ()
412+ sparse_perplexity_metric = SparsePerplexity
413413
414414cerebros_automl = SimpleCerebrosRandomSearch (
415415 unit_type = DenseUnit ,
447447 learning_rate = learning_rate ,
448448 loss = tf .keras .losses .CategoricalCrossentropy (from_logits = True ),
449449 metrics = [tf .keras .metrics .SparseCategoricalAccuracy (),
450- perplexity_metric , # Need to fix...
450+ sparse_perplexity_metric ,
451451 # tf.keras.metrics.Accuracy()
452452 ],
453453 epochs = epochs ,
You can’t perform that action at this time.
0 commit comments