# For the logits from HuggingFace Transformer models, can the sum of the elements of the logit vector be greater than 1?

Hello,
For the logits from HuggingFace Transformer models, can the sum of the elements of the logit vector be greater than 1?
I am getting a logit vector which their element sums to a number greater than 1, and I just think this is strange.

Thanks,

This is normal. The logits are not normalized, and must be passed through a softmax in order to form a valid probability distribution over tokens.

2 Likes
{"ft_lang_label":"__label__en","ft_lang_prob":0.8982637,"math_prob":0.94050217,"size":644,"snap":"2022-27-2022-33","text_gpt3_token_len":144,"char_repetition_ratio":0.13125,"word_repetition_ratio":0.74336284,"special_character_ratio":0.20962733,"punctuation_ratio":0.11363637,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95555305,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-25T00:48:40Z\",\"WARC-Record-ID\":\"<urn:uuid:359e8d80-0c50-4757-af0b-0e2bb94989b4>\",\"Content-Length\":\"18512\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:de3e9c91-309d-4bb4-803d-c8a73951735c>\",\"WARC-Concurrent-To\":\"<urn:uuid:2a248158-099e-4da5-b047-535d2dbd3d4f>\",\"WARC-IP-Address\":\"64.62.250.111\",\"WARC-Target-URI\":\"https://discuss.huggingface.co/t/for-the-logits-from-huggingface-transformer-models-can-the-sum-of-the-elements-of-the-logit-vector-be-greater-than-1/1558\",\"WARC-Payload-Digest\":\"sha1:HJ7Q75CLKOR4EASCVWO6TEEPMTYT6LQX\",\"WARC-Block-Digest\":\"sha1:GMQWXBFKTH2NC5DJ3WYG5IMCHQULHZJM\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103033925.2_warc_CC-MAIN-20220625004242-20220625034242-00195.warc.gz\"}"}