EADST

Check the Index and Token from Tiktoken

Check the Index and Token from Tiktoken

import base64
path = "/home/your_dict_path.tiktoken"
f = open(path, "rb").read()
index = 0
for line in f.splitlines():
    l = line.split()
    print("index: ", l[1])
    print("encode: ", l[0])
    print("decode: ", base64.b64decode(l[0]))
    index += 1
    if index > 20:
        break

Reference Code

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Numpy transformers QWEN Search Qwen2 torchinfo Jetson 关于博主 logger 版权 Llama Augmentation Heatmap Vmess 顶会 Proxy 图形思考法 SPIE C++ EXCEL Pickle Review Safetensors Firewall 净利润 Paper printf 飞书 Github YOLO Translation PyTorch scipy Agent LoRA 强化学习 Tensor tar Markdown SQLite Disk XML CC Base64 音频 递归学习法 Rebuttal TTS Cloudreve Baidu GIT Bin CUDA Input LeetCode 论文速读 WAN FP8 Tracking Algorithm Qwen2.5 Animate Attention GPTQ HuggingFace Food 腾讯云 Conda Knowledge 第一性原理 BTC 搞笑 RAR SAM Video v2ray Bert DeepSeek Password 报税 Django Card Michelin HaggingFace OCR NameSilo 图标 Hotel Freesound CEIR Ptyhon tqdm Anaconda Logo Use Pytorch NLTK 云服务器 FastAPI Statistics Nginx LLM PyCharm Domain 证件照 Shortcut Pillow API GoogLeNet PDB COCO 阿里云 Tiktoken Python 多进程 SVR llama.cpp OpenAI Windows Vim Docker Math Bitcoin Land Transformers Ubuntu uWSGI Plotly Jupyter CV PDF Sklearn ModelScope Plate InvalidArgumentError 域名 VPN 算法题 Breakpoint VGG-16 TensorRT git UNIX Bipartite BeautifulSoup GGML ChatGPT FlashAttention News Zip Excel RL 多线程 PIP Hilton FP32 ONNX CAM Crawler Mixtral Interview Template Datetime Dataset Distillation 公式 icon CSV XGBoost Magnet Data Color CTC Qwen Website Miniforge Permission hf Git SQL Pandas GPT4 mmap DeepStream Clash CLAP Diagram TensorFlow git-lfs ms-swift RGB IndexTTS2 MD5 uwsgi OpenCV Quantization FP64 论文 Web AI diffusers UI Claude LaTeX 签证 v0.dev Linux VSCode WebCrawler Paddle Random Google Gemma Hungarian Quantize FP16 Streamlit JSON NLP TSV Image2Text BF16 财报 LLAMA ResNet-50 继承
站点统计

本站现有博文333篇,共被浏览922521

本站已经建立2628天!

热门文章
文章归档
回到顶部