We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcc87df + c4a24e8 commit 6d2d249Copy full SHA for 6d2d249
codeflash/code_utils/code_utils.py
@@ -13,7 +13,7 @@
13
def encoded_tokens_len(s: str) -> int:
14
'''Function for returning the approximate length of the encoded tokens
15
It's an approximation of BPE encoding (https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)'''
16
- return len(s)//2
+ return int(len(s)*0.25)
17
18
def get_qualified_name(module_name: str, full_qualified_name: str) -> str:
19
if not full_qualified_name:
0 commit comments