Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
137a37f
initial code dump
divyashreepathihalli Aug 11, 2025
8b37482
clean up the implementation of the distillation api
divyashreepathihalli Aug 11, 2025
8252b8f
code reformat
divyashreepathihalli Aug 11, 2025
9bdec23
final clean up
divyashreepathihalli Aug 11, 2025
6efecee
pre commit
divyashreepathihalli Aug 11, 2025
36930e8
Merge branch 'keras-team:master' into distillation-api
divyashreepathihalli Aug 11, 2025
1f73a69
address gemini review comments
divyashreepathihalli Aug 12, 2025
88c2468
address gemini review comments
divyashreepathihalli Aug 12, 2025
9de5809
add a way to save trained student model
divyashreepathihalli Aug 12, 2025
b954718
disable tests in numpy and openvino backends
divyashreepathihalli Aug 12, 2025
bf6219a
pre commit
divyashreepathihalli Aug 12, 2025
b7e51a9
address comments
divyashreepathihalli Aug 15, 2025
e8229c2
address comments
divyashreepathihalli Aug 15, 2025
387595a
run pre-commit
divyashreepathihalli Aug 16, 2025
4d6610a
update distiller and strategies
divyashreepathihalli Aug 18, 2025
a109178
code reformat
divyashreepathihalli Aug 18, 2025
7c13687
Merge branch 'keras-team:master' into distillation-api
divyashreepathihalli Aug 25, 2025
5b6bf03
clean up
divyashreepathihalli Aug 25, 2025
de73fa6
code reformat
divyashreepathihalli Aug 25, 2025
5cd56bf
remove multi output distiilation
divyashreepathihalli Aug 28, 2025
0b2d88f
clean up after merge
divyashreepathihalli Aug 28, 2025
b00d4a4
Merge branch 'keras-team:master' into distillation-api
divyashreepathihalli Aug 29, 2025
9d8242c
address comments
divyashreepathihalli Aug 29, 2025
9c6a70c
update file names
divyashreepathihalli Sep 2, 2025
a7d0b54
subclass logits distillation loss from feature distillation loss
divyashreepathihalli Sep 3, 2025
1607807
update docstrings
divyashreepathihalli Sep 3, 2025
5659310
add validation for feature extraction setup
divyashreepathihalli Sep 3, 2025
d3b27b3
Fix distiller API to accept single strategy or list of strategies
divyashreepathihalli Sep 4, 2025
bbe0868
minor fixes
divyashreepathihalli Sep 4, 2025
7775079
fix tests
divyashreepathihalli Sep 5, 2025
a078fb4
address reveiw comments
divyashreepathihalli Sep 9, 2025
e2f7f6b
oh
divyashreepathihalli Sep 9, 2025
a730c4a
Merge branch 'keras-team:master' into distillation-api
divyashreepathihalli Sep 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions keras/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from keras import config as config
from keras import constraints as constraints
from keras import datasets as datasets
from keras import distillation as distillation
from keras import distribution as distribution
from keras import dtype_policies as dtype_policies
from keras import export as export
Expand Down
1 change: 1 addition & 0 deletions keras/api/_tf_keras/keras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from keras import config as config
from keras import constraints as constraints
from keras import datasets as datasets
from keras import distillation as distillation
from keras import distribution as distribution
from keras import dtype_policies as dtype_policies
from keras import export as export
Expand Down
16 changes: 16 additions & 0 deletions keras/api/_tf_keras/keras/distillation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""

from keras.src.distillation.distillation_loss import (
DistillationLoss as DistillationLoss,
)
from keras.src.distillation.distillation_loss import (
FeatureDistillation as FeatureDistillation,
)
from keras.src.distillation.distillation_loss import (
LogitsDistillation as LogitsDistillation,
)
from keras.src.distillation.distiller import Distiller as Distiller
16 changes: 16 additions & 0 deletions keras/api/distillation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""

from keras.src.distillation.distillation_loss import (
DistillationLoss as DistillationLoss,
)
from keras.src.distillation.distillation_loss import (
FeatureDistillation as FeatureDistillation,
)
from keras.src.distillation.distillation_loss import (
LogitsDistillation as LogitsDistillation,
)
from keras.src.distillation.distiller import Distiller as Distiller
1 change: 1 addition & 0 deletions keras/src/distillation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Distillation module for knowledge distillation in Keras."""
Loading
Loading