mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-28 12:24:35 +00:00
Update test-tokenizer-random.py
This commit is contained in:
parent
3275e29360
commit
5edd022d6a
@ -3,13 +3,13 @@
|
|||||||
# Test libllama tokenizer == AutoTokenizer.
|
# Test libllama tokenizer == AutoTokenizer.
|
||||||
# Brute force random words/text generation.
|
# Brute force random words/text generation.
|
||||||
#
|
#
|
||||||
#Sample usage:
|
# Sample usage:
|
||||||
#
|
#
|
||||||
# python3 tests/test-tokenizer-random.py ./models/ggml-vocab-llama-bpe.gguf ./models/tokenizers/llama-bpe
|
# python3 tests/test-tokenizer-random.py ./models/ggml-vocab-llama-bpe.gguf ./models/tokenizers/llama-bpe
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
#
|
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
|
Loading…
Reference in New Issue
Block a user