nomagick / chatglm3-6b

A 6B parameter open bilingual chat LLM | 开源双语对话语言模型

  • Public
  • 15.3K runs
  • L40S
  • GitHub
  • Paper
  • License
  • Prediction

    nomagick/chatglm3-6b:745fc66ffdc2cb4d82fbc18197beb86b2c86186dbb7744c9d65f293f0a370a98
    ID
    ypc6o2lbc6ocpnaz47pqgcjva4
    Status
    Succeeded
    Source
    Web
    Hardware
    A40
    Total duration
    Created

    Input

    top_p
    0.8
    prompt
    <|system|> You are a helpful assistant. <|user|> 帮我更换一下桌面壁纸 <|assistant|> interpreter
    max_tokens
    2048
    temperature
    0.75

    Output

    ```python from PIL import Image import matplotlib.pyplot as plt # 加载壁纸图片 wallpaper_path = "path/to/wallpaper.jpg" wallpaper = Image.open(wallpaper_path) # 设置新的桌面壁纸 def set_wallpaper(image): # 获取屏幕尺寸 screen_width, screen_height = plt.get_size_height() # 计算图片的缩放比例 scale = min(screen_width/image.width, screen_height/image.height) # 计算新的图片尺寸 new_width, new_height = int(image.width * scale), int(image.height * scale) # 缩放图片 new_image = image.resize((new_width, new_height)) # 设置为桌面壁纸 plt.margins(0, 0, 0, 0) plt.savefig(new_image, format="png") plt.close() os.system("setwallpaper " + str(new_image)) # 设置壁纸 set_wallpaper(wallpaper) ```
    Generated in
  • Prediction

    nomagick/chatglm3-6b:011aa0fe6de73caab8617f77b65cae3f544a4f2de0131e34302a2d808883daa8
    ID
    d5lv2ndbxe3pwdi7q6vehmkbi4
    Status
    Succeeded
    Source
    Web
    Hardware
    A40
    Total duration
    Created

    Input

    top_p
    0.8
    prompt
    <|system|> You are a helpful assistant <|user|> 全文背诵出师表 <|assistant|>
    max_tokens
    2048
    temperature
    0.75

    Output

    《出师表》是东汉末年蜀汉丞相诸葛亮在决定北上伐魏、克复中原之前给后主刘禅上书的表文。这篇文章以诸葛亮的第一人称叙述了他对蜀汉的忠诚和对战争胜利的期望。下面是《出师表》的全文: 先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。诚宜开张圣听,以光先帝遗德,恢弘志士之气,不宜妄自菲薄,引喻失义,以塞忠谏之路也。 宫中府中,俱为一体,陟罚臧否,不宜异同。若有作奸犯科及为忠善者,宜付有司论其刑赏,以昭陛下平明之治,不宜偏私,使内外异法也。 侍中、侍郎郭攸之、费祎、董允等,此皆良实,志虑忠纯,是以先帝简拔以遗陛下。愚以为宫中之事,事无大小,悉以咨之,然后施行,必能裨补阙漏,有所广益。 将军向宠,性行淑均,晓畅军事,试用于昔日,先帝称之曰能,是以众议举宠为督。愚以为营中之事,悉以咨之,必能使行阵和睦,优劣得所。 亲贤臣,远小人,此先汉所以兴隆也;亲小人,远贤臣,此后汉所以倾颓也。先帝在时,每与臣论此事,未尝不叹息痛恨于桓、灵也。侍中、尚书、长史、参军,此悉贞良死节之臣,愿陛下亲之信之,则汉室之隆,可计日而待也。 臣本布衣,躬耕于南阳,苟全性命于乱世,不求闻达于诸侯。先帝不以臣卑鄙,猥自枉屈,三顾臣于草庐之中,咨臣以当世之事,由是感激,遂许先帝以驱驰。后值倾覆,受任于败军之际,奉命于危难之间,尔来二十有一年矣。 先帝知臣谨慎,故临崩寄臣以大事也。受命以来,夙夜忧叹,恐托付不效,以伤先帝之明,故五月渡泸,深入不毛。今南方已定,兵甲已足,当奖率三军,北定中原,庶竭驽钝,攘除奸凶,兴复汉室,还于旧都。此臣所以报先帝而忠陛下之职分也。至于斟酌损益,进尽忠言,则攸之、祎、允之任也。 愿陛下托臣以讨贼兴复之效,不效,则治臣之罪,以告先帝之灵。若无兴德之言,则责攸之、祎、允等之慢,以彰其咎;陛下亦宜自谋,以咨诹善道,察纳雅言,深追先帝遗诏,臣不胜受恩感激。 今当远离,临表涕零,不知所言。
    Generated in
  • Prediction

    nomagick/chatglm3-6b:011aa0fe6de73caab8617f77b65cae3f544a4f2de0131e34302a2d808883daa8
    ID
    yibhyedbuvdbvpnpaogte5wjze
    Status
    Succeeded
    Source
    Web
    Hardware
    A40
    Total duration
    Created

    Input

    top_p
    0.8
    prompt
    <|system|> You are a helpful assistant <|user|> 请使用英文重复这段话:"为了使模型生成最优输出,当使用 ChatGLM3-6B 时需要使用特定的输入格式,请按照示例格式组织输入。" <|assistant|>
    max_tokens
    2048
    temperature
    0.75

    Output

    In order to generate the optimal output, when using ChatGLM3-6B, you need to use a specific input format, please organize your input according to the example format.
    Generated in
  • Prediction

    nomagick/chatglm3-6b:745fc66ffdc2cb4d82fbc18197beb86b2c86186dbb7744c9d65f293f0a370a98
    ID
    yyspnktbemhu4ibsnpda6cjfy4
    Status
    Succeeded
    Source
    Web
    Hardware
    A40
    Total duration
    Created

    Input

    top_p
    0.8
    prompt
    <|system|> You are a helpful assistant. Answer the following questions as best as you can. You have access to the following tools: { { "name": "track", "description": "追踪指定股票的实时价格", "parameters": { "type": "object", "properties": { "symbol": { "description": "需要追踪的股票代码" } }, "required": ['symbol'] } }, { "name": "text-to-speech", "description": "将文本转换为语音", "parameters": { "type": "object", "properties": { "text": { "description": "需要转换成语音的文本" }, "voice": { "description": "要使用的语音类型(男声、女声等)" }, "speed": { "description": "语音的速度(快、中等、慢等)" } }, "required": ['text'] } } } <|user|> 帮我查询股票600519的价格 <|assistant|>track ```python tool_call(symbol='600519') ``` <|observation|> 1,676.71 <|assistant|>
    max_tokens
    2048
    temperature
    0.75

    Output

    股票600519的实时价格为1,676.71元。
    Generated in

Want to make some of these yourself?

Run this model