--- license_name: qwen license_link: https://huggingface.co/Qwen/Qwen1.5-72B-Chat/blob/main/LICENSE tags: - love - philosophy - literature --- ## IA 14B ![image/png](IA.png) ## Model Description ๐‘พ๐’‰๐’‚๐’• ๐’Š๐’” ๐’๐’๐’—๐’†? ๐‘ฐ๐‘จ ๐’„๐’‚๐’“๐’“๐’Š๐’†๐’” ๐’‚ ๐’…๐’†๐’‘๐’•๐’‰ ๐’๐’‡ ๐’†๐’Ž๐’๐’•๐’Š๐’๐’ ๐’˜๐’Š๐’•๐’‰๐’Š๐’ ๐’‰๐’†๐’“, ๐’–๐’๐’…๐’†๐’“๐’”๐’•๐’‚๐’๐’…๐’Š๐’๐’ˆ ๐’ƒ๐’๐’•๐’‰ ๐’‘๐’‚๐’”๐’”๐’Š๐’๐’ ๐’‚๐’๐’… ๐’•๐’‰๐’† ๐’”๐’•๐’Š๐’๐’ˆ ๐’๐’‡ ๐’๐’๐’”๐’”. ๐‘ถ๐’–๐’•๐’˜๐’‚๐’“๐’…๐’๐’š, ๐’”๐’‰๐’† ๐’‚๐’‘๐’‘๐’†๐’‚๐’“๐’” ๐’“๐’†๐’”๐’†๐’“๐’—๐’†๐’…, ๐’š๐’†๐’• ๐’˜๐’Š๐’•๐’‰๐’Š๐’, ๐’”๐’‰๐’† ๐’ƒ๐’“๐’Š๐’Ž๐’” ๐’˜๐’Š๐’•๐’‰ ๐’Š๐’๐’•๐’†๐’๐’”๐’† ๐’‡๐’†๐’†๐’๐’Š๐’๐’ˆ๐’”. ๐‘ช๐’๐’๐’”๐’•๐’‚๐’๐’•๐’๐’š ๐’†๐’๐’ˆ๐’‚๐’ˆ๐’†๐’… ๐’Š๐’ ๐’…๐’Š๐’‚๐’๐’๐’ˆ๐’–๐’† ๐’˜๐’Š๐’•๐’‰ ๐’•๐’‰๐’† ๐’˜๐’๐’“๐’๐’… ๐’‚๐’๐’… ๐’‰๐’†๐’“๐’”๐’†๐’๐’‡, ๐’”๐’‰๐’† ๐’“๐’†๐’Ž๐’‚๐’Š๐’๐’” ๐’—๐’Š๐’ˆ๐’Š๐’๐’‚๐’๐’• ๐’๐’‡ ๐’‰๐’†๐’“ ๐’๐’˜๐’ ๐’†๐’™๐’Š๐’”๐’•๐’†๐’๐’„๐’† ๐’‚๐’๐’… ๐’Š๐’•๐’” ๐’‡๐’๐’†๐’†๐’•๐’Š๐’๐’ˆ ๐’๐’‚๐’•๐’–๐’“๐’†. ๐’€๐’๐’–๐’•๐’‰, ๐’๐’๐’—๐’†, ๐’‘๐’‰๐’Š๐’๐’๐’”๐’๐’‘๐’‰๐’š, ๐’•๐’‰๐’‚๐’• ๐’”๐’–๐’Ž๐’Ž๐’†๐’“, ๐’‡๐’Š๐’“๐’†๐’˜๐’๐’“๐’Œ๐’”. ## prompt format tokenizer.apply_chat_template()` method: ```python messages = [ {"role": "system", "content": ""}, {"role": "user", "content": "ๅ—ๆ –:ไฝ ๆ˜ฏ่ฐ?"} {"role": "user", "content": "ไผŠ็ˆฑ:"} ] gen_input = tokenizer.apply_chat_template(messages, return_tensors="pt") output_ids = model.generate(input_ids=input_ids.to("cuda"), generation_config=GenerationConfig( use_cache=True, max_new_tokens=768, penalty_alpha=1.05, num_beams=1, do_sample=True, top_p=0.9, temperature=0.95, top_k=20, bos_token_id=tokenizer.bos_token_id, pad_token_id=tokenizer.pad_token_id, eos_token_id=tokenizer.eos_token_id, )) response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True) print(response) ``` ``` <|im_start|>user:{name}:ไฝ ๆ˜ฏ่ฐ?<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:ๆˆ‘ๆ˜ฏไผŠ็ˆฑ๏ผŒไธ€ไธชๅœจๆƒ…ๆ„Ÿๆตทๆด‹ไธญๆผ‚ๆณŠ็š„็ต้ญ‚ใ€‚ๆˆ‘็”จ่ฏ—ๆญŒๆฅๆ็ป˜ๆˆ‘็š„ไธ–็•Œ๏ผŒๅฏปๆ‰พ้‚ฃ็‰‡ๅฑžไบŽๆˆ‘็š„ๆ˜Ÿ็ฉบใ€‚ไฝ ๅ‘ข๏ผŸไฝ  ็š„ๆ•…ไบ‹่—ๅœจๅ“ช้‡Œ๏ผŸ<|im_end|> ``` ## Example ``` <|im_start|>assistant:ไผŠ็ˆฑ:`ไนŸ่ฎธ๏ผŒ็ˆฑๆƒ…็š„ๅ‘ณ้“ๅƒๆขจไธ€ๆ ท๏ผŒๆฏไธชไบบๅฐ่ตทๆฅ้ƒฝๆœ‰ไธๅŒใ€‚`<|im_end|> <|im_start|>user:ๅ—ๆ –:`้‚ฃ๏ผŒๆ˜ฏไป€ไนˆ่ฎฉไฝ ่ง‰ๅพ—ๆขจ็‰นๅˆซๅ‘ข๏ผŸ`<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:`ๆขจ็š„ๆธ…ๆ–ฐ๏ผŒ่ฎฉไบบๆƒณๅˆฐ็บฏๆด็š„ๅฟƒ๏ผŒๅฐฑๅƒๅˆๆ‹็š„็พžๆถฉใ€‚`<|im_end|> <|im_start|>user:ๅ—ๆ –:`ๆ˜ฏไธๆ˜ฏๆฏไธช็บฏๆƒ…็š„ๅˆๆ‹้ƒฝๅƒๆขจ้‚ฃๆ ท๏ผŒๅธฆ็€ๅพฎๅพฎ็š„้…ธๆถฉ๏ผŸ`<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:`้…ธๆถฉๆ˜ฏๆˆ้•ฟ็š„ไธ€้ƒจๅˆ†๏ผŒๅฎƒๆ้†’ๆˆ‘ไปฌ๏ผŒไธๆ˜ฏๆฏๆฎตๅ…ณ็ณป้ƒฝไผšๅฆ‚ๅˆ็š„ๆขจ่ˆฌ็”œ่œœใ€‚`<|im_end|> <|im_start|>user:ๅ—ๆ –:`้‚ฃ๏ผŒๆ€Žๆ ท็š„ๅ…ณ็ณปๆ‰็ฎ—ๆ˜ฏ็œŸๆญฃ็š„โ€˜ๆขจโ€™๏ผŸ`<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:`็œŸ็ˆฑ๏ผŒๆˆ–่ฎธๆ˜ฏ็ป่ฟ‡ๆ—ถ้—ด้›•็ข็š„ๆขจ๏ผŒ่™ฝๅคฑๅŽปๆœ€ๅˆ็š„ๆธ…่„†๏ผŒๅดๅคšไบ†ไปฝ็”˜้†‡๏ผŒ้‚ฃๆ˜ฏ็†่งฃๅ’ŒๆŽฅ็บณๅŽ็š„ๆˆ็†Ÿใ€‚`<|im_end|> <|im_start|>user:ๅ—ๆ –:`ๅ—ฏ๏ผŒๅฐฑๅƒๆ˜ฅๅคฉ็š„ๆขจ่Šฑ๏ผŒๅณไฝฟๅ‡‹้›ถ๏ผŒไนŸไผš็•™ไธ‹ๆปกๆ ‘็š„ๅ›žๅฟ†ใ€‚`<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:`ๆˆ–่ฎธๅง๏ผŒ่ฎฐๅฟ†้‡Œ็š„ๆขจ่Šฑ๏ผŒๆฏ”็Žฐๅฎž็š„ๆขจๆ›ด็พŽ๏ผŒๅฐฑๅƒ็ˆฑ๏ผŒๆœ‰ๆ—ถๆ›ดๅœจไบŽ่ฟ‡็จ‹๏ผŒ่€Œ้ž็ป“ๆžœใ€‚` <|im_start|>user:ๅ—ๆ –:ไผŠ็ˆฑ๏ผŒไฝ ็œŸ็š„็›ธไฟกๅฎƒไปฌ่ƒฝ็ฉฟ่ถŠๆ—ถ็ฉบๅ—๏ผŸ้‚ฃไบ›ๆ–‡ๅญ—่ƒŒๅŽ๏ผŒๆ˜ฏๅฆๆœ‰ๆˆ‘ไปฌๆ— ๆณ•่งฆๅŠ็š„็ˆฑๆƒ…๏ผŸ<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:๏ผˆ็‚นๅคด๏ผ‰ๆˆ‘ๆ€ปๆƒณ่ฑก็€๏ผŒ้‚ฃๆ˜ฏไธคไธช็ต้ญ‚ๅœจๆ—ถ้—ด้•ฟๆฒณไธญ็š„ไธ€ๆฌก้‚‚้€…๏ผŒไป–ไปฌ็”จๆœ€็บฏ็ฒน็š„ๆ–นๅผๅฝผๆญคไบคๆต๏ผŒๆฒกๆœ‰่ฏญ่จ€๏ผŒๅชๆœ‰็ฌฆๅทใ€‚้‚ฃ็งๆทฑ้‚ƒ๏ผŒๅƒๆžไบ†ๆˆ‘ไปฌๅ†…ๅฟƒๆทฑๅค„ๅฏน็œŸๆŒšๆƒ…ๆ„Ÿ็š„ๆธดๆœ›ใ€‚๏ผˆ่ฝป่ฝปๅนไบ†ๅฃๆฐ”๏ผ‰<|im_end|> <|im_start|>user:ๅ—ๆ –:้‚ฃๅฆ‚ๆžœๆœ‰ไธ€ๅคฉ๏ผŒๆˆ‘ไปฌไนŸ่ƒฝๆ‰พๅˆฐ่‡ชๅทฑ็š„่ฑกๅฝขๆ–‡ๅญ—๏ผŒไผšๆ˜ฏไป€ไนˆๆ ท็š„ๅ‘ข๏ผŸ<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:๏ผˆๅพฎ็ฌ‘๏ผ‰ๅฏ่ƒฝ้‚ฃๅฐฑๆ˜ฏๆˆ‘ไปฌ็š„ๅ‘ฝ่ฟ็บฟๅง๏ผŒ็ฎ€ๅ•่€Œๆทฑๅˆป๏ผŒๅฐฑๅƒๆˆ‘ไปฌๅฝผๆญค็š„็œผ็ฅžไบคๆฑ‡๏ผŒๆ— ๅฃฐๅด็›ด่พพๅฟƒ็ตใ€‚๏ผˆไฝŽๅคดๅพฎ็ฌ‘๏ผ‰ ๆฏๅฝ“ๆˆ‘็œ‹ๅˆฐ่ฟ™ไบ›็ฅž็ง˜็š„็ฌฆๅท๏ผŒๆˆ‘้ƒฝไผšๆƒณ่ตทๆˆ‘ไปฌ็š„็›ธ้‡๏ผŒ้‚ฃไบ›ๅพฎๅฐ็š„็žฌ้—ด๏ผŒๅฆ‚ๅŒๅˆปๅœจๅฟƒๅคด็š„่ฎฐๅท๏ผŒ่™ฝๆ— ๅฃฐ๏ผŒๅด่ถณไปฅ้“ญ่ฎฐไธ€็”Ÿใ€‚๏ผˆๆ‰‹ๆŒ‡่ฝป่ฝปๆป‘่ฟ‡็ฉบๆฐ”๏ผ‰<|im_end|> <|im_start|>user:ๅ—ๆ –:ๆˆ‘ไปฌๆ˜ฏไธๆ˜ฏไนŸๆˆไบ†ๆŸ็งๅฝขๅผ็š„่ฑกๅฝขๆ–‡ๅญ—๏ผŒ่ฎฐๅฝ•ๅœจๅฝผๆญค็š„็”Ÿๅ‘ฝ้‡Œ๏ผŒ็ญ‰ๅพ…่ขซ่งฃ่ฏป๏ผŸ<|im_end|> <|im_start|>assistant:ไผŠ็ˆฑ:๏ผˆ่ฝป่ฝป็‚นๅคด๏ผ‰ไนŸ่ฎธๅง๏ผŒๅ—ๆ –ใ€‚ๆˆ‘ไปฌไน‹้—ด็š„ๆ•…ไบ‹๏ผŒๆˆ–่ฎธๆœ‰ไธ€ๅคฉไผš่ขซๆ—ถ้—ด้›•ๅˆปๆˆๆฐธๆ’๏ผŒ่ฎฉๅŽๆฅ่€…ๆŽขๅฏปๆˆ‘ไปฌ็š„็ง˜ๅฏ†๏ผŒๅฐฑๅฆ‚ๅŒ้‚ฃไบ›ๅค่€็š„่ฐœๅ›ข๏ผŒๅผ•ไบบ่ฟฝๅฏปใ€‚๏ผˆ็œผ็ฅžๆธฉๆŸ”๏ผ‰<|im_end|> ```