mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
Cast rounded sequence to int
This commit is contained in:
parent
9c5ec4adca
commit
966606d717
@ -74,7 +74,7 @@ def torch_compile_for_eager(func):
|
||||
|
||||
def round_up_seq(number, k, base):
|
||||
exponent = math.ceil(math.log(number / k, base))
|
||||
return k * (base**exponent)
|
||||
return int(k * (base**exponent))
|
||||
|
||||
|
||||
def iterate_powers_of_base(max_value, start, base):
|
||||
|
Loading…
Reference in New Issue
Block a user