





'''simple docstring'''

import math





def lowerCamelCase						(     __lowerCamelCase :    int    )						->str:
    _SCREAMING_SNAKE_CASE									=			0
    _SCREAMING_SNAKE_CASE									=			0
    while num > 0:
        _SCREAMING_SNAKE_CASE									=			num % 8
        _SCREAMING_SNAKE_CASE									=			octal + (remainder * math.floor(math.pow(10					,       __lowerCamelCase    )    ))
        counter += 1
        _SCREAMING_SNAKE_CASE									=			math.floor(num / 8    )  # basically /= 8 without remainder if any
        # This formatting removes trailing '.0' from `octal`.
    return F'0o{int(__lowerCamelCase    )}'





def lowerCamelCase						(     )						->None:
    print("""\n2 in octal is:"""    )
    print(decimal_to_octal(2    )    )  # = 2
    print("""\n8 in octal is:"""    )
    print(decimal_to_octal(8    )    )  # = 10
    print("""\n65 in octal is:"""    )
    print(decimal_to_octal(65    )    )  # = 101
    print("""\n216 in octal is:"""    )
    print(decimal_to_octal(216    )    )  # = 330
    print("""\n512 in octal is:"""    )
    print(decimal_to_octal(512    )    )  # = 1000
    print("""\n"""    )


if __name__ == "__main__":
      main()











lowerCamelCase       :       Dict        =				'''0.21.0'''

from .accelerator import Accelerator
from .big_modeling import (
    cpu_offload,
    cpu_offload_with_hook,
    disk_offload,
    dispatch_model,
    init_empty_weights,
    init_on_device,
    load_checkpoint_and_dispatch,
)
from .data_loader import skip_first_batches
from .launchers import debug_launcher, notebook_launcher
from .state import PartialState
from .utils import (
    DeepSpeedPlugin,
    DistributedDataParallelKwargs,
    DistributedType,
    FullyShardedDataParallelPlugin,
    GradScalerKwargs,
    InitProcessGroupKwargs,
    find_executable_batch_size,
    infer_auto_device_map,
    is_rich_available,
    load_checkpoint_in_model,
    synchronize_rng_states,
)


if is_rich_available():
	from .utils import rich