castorini / candle

PyTorch utilities for parameter pruning and multiplies reduction
MIT License
2 stars 1 forks source link

Final results #3

Open daemon opened 6 years ago

daemon commented 6 years ago

Thread containing final results for submission to conference. Mandatory checklist:

Optional checklist:

daemon commented 6 years ago

Computing multiplies: (4650p, 800) fo (4650p, 1550p) fo (4650p, 1550p) fo (1200p, 1550p) fo (10000, 400p) softmax

import math
def mults(p):
    p = math.sqrt(p)
    return int(4650 * p * 800) + int(4650 * p * 1550 * p) + \
        int(4650 * p * 1550 * p) + int(1200 * p * 1550 * p) + int(10000 * 400 * p)

l = 0.536 # 0.6
l = 0.42 # 0.5
l = 0.32 # 0.4
l = 0.76 # 0.8
l = 0.12 # 0.2

# l = 0.8
print(mults(l), mults(1), mults(l) / mults(1))

# the 80% parameter model is roughly 69.15 (70)% of the multiplies