Update tests.py

This commit is contained in:
Sebastian Raschka 2024-10-23 07:48:33 -05:00 committed by GitHub
parent ef4018181e
commit 4f9c9fb703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,10 @@
# Copyright (c) Sebastian Raschka under Apache License 2.0 (see LICENSE.txt).
# Source for "Build a Large Language Model From Scratch"
# - https://www.manning.com/books/build-a-large-language-model-from-scratch
# Code: https://github.com/rasbt/LLMs-from-scratch
# File for internal use (unit tests)
import io
import os
import sys
@ -8,14 +15,6 @@ import pytest
from transformers.models.llama.modeling_llama import LlamaRotaryEmbedding, apply_rotary_pos_emb
# Copyright (c) Sebastian Raschka under Apache License 2.0 (see LICENSE.txt).
# Source for "Build a Large Language Model From Scratch"
# - https://www.manning.com/books/build-a-large-language-model-from-scratch
# Code: https://github.com/rasbt/LLMs-from-scratch
# File for internal use (unit tests)
@pytest.fixture(scope="module")
def notebook():
def import_definitions_from_notebook(notebooks):