Skip to content

Commit

Permalink
[BUGFIX] Correct typos and wrong description in zero-shot LLM example…
Browse files Browse the repository at this point in the history
…s. (#348)
  • Loading branch information
alexsherstinsky authored Feb 28, 2024
1 parent 21933c1 commit 01385c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/examples/llms/llm_zero_shot_batch_inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ output_features:
"""
)

# Define Ludwig model object that drive model training
# Define Ludwig model object that drives model training
model = LudwigModel(config=config, logging_level=logging.INFO)

# initiate model training
Expand All @@ -111,4 +111,4 @@ training_set, val_set, test_set, _ = preprocessed_data
# batch prediction
preds, _ = model.predict(test_set, skip_save_predictions=False)
print(preds)
```
```
6 changes: 3 additions & 3 deletions docs/examples/llms/llm_zero_shot_text_generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ config = yaml.safe_load(
"""
)

# Define Ludwig model object that drive model training
# Define Ludwig model object that drives model training
model = LudwigModel(config=config, logging_level=logging.INFO)

# Loads the model and performs no training.
# initiate model training
(
train_stats, # dictionary containing training statistics
preprocessed_data, # tuple Ludwig Dataset objects of pre-processed training data
Expand All @@ -87,4 +87,4 @@ training_set, val_set, test_set, _ = preprocessed_data
# batch prediction
preds, _ = model.predict(test_set, skip_save_predictions=False)
print(preds)
```
```

0 comments on commit 01385c2

Please sign in to comment.