Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
diwank
/
cryptgpt
like
0
Text Generation
Transformers
PyTorch
Safetensors
gpt2
axolotl
Generated from Trainer
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
Train
Deploy
Use this model
main
cryptgpt
/
tokenizer_utils.py
diwank
Upload tokenizer
8d33560
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
204 Bytes
from
transformers
import
PreTrainedTokenizerFast
class
CryptGPTTokenizer
(
PreTrainedTokenizerFast
):
@staticmethod
def
clean_up_tokenization
(
out_string
):
return
out_string.replace(
' '
,
""
)