Notice
Recent Posts
Link
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- iris dataset
- Python
- pill ai
- 긍부정문 판별
- 369게임 만들기
- docker container
- 시저암호 코딩
- aws code pipeline
- pill classification
- Container
- ubuntu에서 docker 사용
- Java
- ubuntu
- deep learning
- token check
- 오목앱 만들기
- yolo mask
- docker
- C
- dji tello
- docker in ubuntu
- drone control
- 오목게임앱
- AI
- flower classification
- ceasor
- 360게임 만들기 with c
- 한글깨짐해결
- 춤 유사도 평가
- mask image training
Archives
- Today
- Total
목록Token (1)
월레스와 그로밋: 코딩의 날
토큰 수 출력해보기
import tiktokentiktoken: OpenAI의 GPT 계열 모델에서 사용하는 토크나이저(tokenizer) 라이브러리# 토큰 인코딩 규칙 불러오기encoding = tiktoken.encoding_for_model("gpt-3.5-turbo")tiktoken.encoding_for_model(): "gpt-3.5-turbo" 모델에 맞는 토큰 인코딩 규칙 불러오기(LLM)참고) 토크나이저 이름을 불러올 시, tiktoken.get_encoding()# 텍스트 정의text = "GPT is a type of language model developed by OpenAI that uses deep learning to understand and generate human-like text. It..
Python/Etc
2025. 3. 25. 16:26