Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt authored Oct 23, 2024
1 parent ef40181 commit 4f9c9fb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ch05/07_gpt_to_llama/tests/tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,14 +15,6 @@
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):
Expand Down

0 comments on commit 4f9c9fb

Please sign in to comment.