# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Skier8402/code-search-net-tokenizer", dtype="auto")Quick Links
This is an adapted tokenizer from GPT2 that can recognize tokens to do with Python coding. It is part of the huggingfaceNLP course exercise. It uses the method train_new_from_iterator()
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Skier8402/code-search-net-tokenizer")