-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comments reloved and functional test
- Loading branch information
1 parent
67bf0f2
commit a3fff6f
Showing
3 changed files
with
71 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
#test to check if whether inference.py uploads log probabilities to Hugging Face. | ||
#similar to generate_logprobs.sh, much smaller. | ||
|
||
BATCH_SIZE=80 | ||
DATASET_NAME="delphi-suite/tinystories-v2-clean-tokenized" | ||
USERNAME="transcendingvictor" # Your Hugging Face username | ||
TOKEN="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" # Your Hugging Face API token | ||
|
||
# List of models | ||
declare -a MODEL_NAMES=("delphi-suite/delphi-llama2-100k" | ||
"delphi-suite/delphi-llama2-200k" | ||
) | ||
|
||
# Loop through each model and generate log probabilities | ||
for MODEL_NAME in "${MODEL_NAMES[@]}" | ||
do | ||
echo "Processing $MODEL_NAME" | ||
python scripts/inference.py "$MODEL_NAME" --batch-size "$BATCH_SIZE" --dataset-name "$DATASET_NAME" --username "$USERNAME" --token "$TOKEN" --test-funct | ||
done | ||
|
||
echo "All models processed." |