Generate: visit non-llm prepare_inputs_for_generation (#34199)
* tmp * all visited * test all * Update src/transformers/models/moshi/modeling_moshi.py Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com> * delete another one :D --------- Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
This commit is contained in:
@@ -672,9 +672,13 @@ def is_copy_consistent(filename: str, overwrite: bool = False, buffer: dict = No
|
||||
indent, object_name, replace_pattern = search.groups()
|
||||
|
||||
# Find the file lines, the object's code, and its blocks
|
||||
target_lines, theoretical_code, theoretical_code_splits = find_code_and_splits(
|
||||
object_name, base_path, buffer=buffer
|
||||
)
|
||||
try:
|
||||
target_lines, theoretical_code, theoretical_code_splits = find_code_and_splits(
|
||||
object_name, base_path, buffer=buffer
|
||||
)
|
||||
except Exception as exc:
|
||||
exc.args = (f"Error while trying to find source code for {filename}.\n\n" + str(exc),)
|
||||
raise
|
||||
|
||||
# code replaced by the patterns
|
||||
theoretical_code_blocks = OrderedDict()
|
||||
|
||||
Reference in New Issue
Block a user