Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Recipes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
meta-llama
Llama Recipes
Commits
7f5feae6
Commit
7f5feae6
authored
1 month ago
by
Igor Kasianenko
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
ec214112
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/llama_recipes/configs/datasets.py
+1
-1
1 addition, 1 deletion
src/llama_recipes/configs/datasets.py
src/tests/datasets/test_custom_dataset.py
+3
-3
3 additions, 3 deletions
src/tests/datasets/test_custom_dataset.py
src/tests/test_chat_completion.py
+1
-1
1 addition, 1 deletion
src/tests/test_chat_completion.py
with
5 additions
and
5 deletions
src/llama_recipes/configs/datasets.py
+
1
−
1
View file @
7f5feae6
...
...
@@ -28,7 +28,7 @@ class alpaca_dataset:
@dataclass
class
custom_dataset
:
dataset
:
str
=
"
custom_dataset
"
file
:
str
=
"
src/llama_cookbook
/datasets/custom_dataset.py
"
file
:
str
=
"
getting-started/finetuning
/datasets/custom_dataset.py
"
train_split
:
str
=
"
train
"
test_split
:
str
=
"
validation
"
data_path
:
str
=
""
...
...
This diff is collapsed.
Click to expand it.
src/tests/datasets/test_custom_dataset.py
+
3
−
3
View file @
7f5feae6
...
...
@@ -52,7 +52,7 @@ def test_custom_dataset(step_lr, optimizer, get_model, tokenizer, train, mocker,
kwargs
=
{
"
dataset
"
:
"
custom_dataset
"
,
"
model_name
"
:
llama_version
,
"
custom_dataset.file
"
:
"
recipes/quick
start/finetuning/datasets/custom_dataset.py
"
,
"
custom_dataset.file
"
:
"
getting-
start
ed
/finetuning/datasets/custom_dataset.py
"
,
"
custom_dataset.train_split
"
:
"
validation
"
,
"
batch_size_training
"
:
2
,
"
val_batch_size
"
:
4
,
...
...
@@ -111,7 +111,7 @@ def test_unknown_dataset_error(step_lr, optimizer, tokenizer, get_model, get_con
kwargs
=
{
"
dataset
"
:
"
custom_dataset
"
,
"
custom_dataset.file
"
:
"
recipes/quick
start/finetuning/datasets/custom_dataset.py:get_unknown_dataset
"
,
"
custom_dataset.file
"
:
"
getting-
start
ed
/finetuning/datasets/custom_dataset.py:get_unknown_dataset
"
,
"
batch_size_training
"
:
1
,
"
use_peft
"
:
False
,
}
...
...
@@ -121,7 +121,7 @@ def test_unknown_dataset_error(step_lr, optimizer, tokenizer, get_model, get_con
@pytest.mark.skip_missing_tokenizer
@patch
(
'
llama_recipes.finetuning.AutoTokenizer
'
)
def
test_tokenize_dialog
(
tokenizer
,
monkeypatch
,
setup_tokenizer
,
llama_version
):
monkeypatch
.
syspath_prepend
(
"
recipes/quick
start/finetuning/datasets/
"
)
monkeypatch
.
syspath_prepend
(
"
getting-
start
ed
/finetuning/datasets/
"
)
from
custom_dataset
import
tokenize_dialog
setup_tokenizer
(
tokenizer
)
...
...
This diff is collapsed.
Click to expand it.
src/tests/test_chat_completion.py
+
1
−
1
View file @
7f5feae6
...
...
@@ -8,7 +8,7 @@ import torch
from
llama_recipes.inference.chat_utils
import
read_dialogs_from_file
ROOT_DIR
=
Path
(
__file__
).
parents
[
2
]
CHAT_COMPLETION_DIR
=
ROOT_DIR
/
"
recipes/quick
start/inference/local_inference/chat_completion/
"
CHAT_COMPLETION_DIR
=
ROOT_DIR
/
"
getting-
start
ed
/inference/local_inference/chat_completion/
"
sys
.
path
=
[
CHAT_COMPLETION_DIR
.
as_posix
()]
+
sys
.
path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment