Skip to content

Cannot use save_log and log_history #61

@david-wei-01001

Description

@david-wei-01001

Hi,
I want to access

CONFIG_MAP["log“]

to record the number of steps took, but after I try both

import lade
...
lade.save_log()

or

from lade.utils import save_log
...
save_log()

It seems all says that "save_log" does not exist in lade. same happens for "log_history"

Also, I have tryed to print want comes with lade, and it seems they are both not there:

import lade
print(dir(lade))
import lade.utils
print(dir(lade.utils))

And the output is:

['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'augment_all', 'augment_generate', 'augment_llama', 'config_lade', 'decoding', 'models', 'utils']
['AutoConfig', 'AutoModelForCausalLM', 'AutoTokenizer', 'CONFIG_MAP', 'FUNC_MAP', 'GenerationMixin', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'augment_all', 'augment_generate', 'augment_llama', 'config_lade', 'get_hf_model', 'get_model', 'greedy_search_proxy', 'llama', 'modeling_llama', 'os', 'torch']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions