Coder Social home page Coder Social logo

需要加强C#语言支持 about codegeex2 HOT 8 CLOSED

thudm avatar thudm commented on May 21, 2024
需要加强C#语言支持

from codegeex2.

Comments (8)

Stanislas0 avatar Stanislas0 commented on May 21, 2024 1

您好,C#还没有相关的测试集,之后会考虑补充。CodeGeeX2的C#同样也是有提升的,可以尝试一下插件中C#的效果。

from codegeex2.

Stanislas0 avatar Stanislas0 commented on May 21, 2024 1

@sdcb Hi,你跑的结果是有问题的。开源的 CodeGeeX2-6B 是一个基座代码模型,它的使用方式是偏补全的,要按照某种语言的编程习惯来使用。比如C#应该使用“//”的注释符号,语言标签应该是// language: C#,prompt是// [prompt]。你的例子中使用了“#”,这是Python特有的注释符号,自然就生成了Python代码。正确的使用方式是像以下这个例子([运行代码] (https://github.com/THUDM/CodeGeeX2/blob/main/demo/run_demo.py)):

CleanShot 2023-07-26 at 21 43 09@2x

当然也可以直接尝试CodeGeeX插件中的对话功能,是经过指令微调的,生成结果更加准确:

CleanShot 2023-07-26 at 21 44 23@2x

from codegeex2.

sdcb avatar sdcb commented on May 21, 2024

image
亲测了,目前C#的状态比较堪忧,希望在下一个版本中加强,C#开发者还是很庞大的。

from codegeex2.

sdcb avatar sdcb commented on May 21, 2024

另一个示例,请他写个hello world,更加离谱:
image

from codegeex2.

sdcb avatar sdcb commented on May 21, 2024

image
看来主要应该是对python支持得比较好,输入Javascript仍然输出python

from codegeex2.

sdcb avatar sdcb commented on May 21, 2024

image

from codegeex2.

sdcb avatar sdcb commented on May 21, 2024

感谢指出,那我应该找机会再去测测!

from codegeex2.

lonngxiang avatar lonngxiang commented on May 21, 2024

@sdcb Hi,你跑的结果是有问题的。开源的 CodeGeeX2-6B 是一个基座代码模型,它的使用方式是偏补全的,要按照某种语言的编程习惯来使用。比如C#应该使用“//”的注释符号,语言标签应该是// language: C#,prompt是// [prompt]。你的例子中使用了“#”,这是Python特有的注释符号,自然就生成了Python代码。正确的使用方式是像以下这个例子([运行代码] (https://github.com/THUDM/CodeGeeX2/blob/main/demo/run_demo.py)):%EF%BC%89%EF%BC%9A)

CleanShot 2023-07-26 at 21 43 09@2x 当然也可以直接尝试CodeGeeX插件中的对话功能,是经过指令微调的,生成结果更加准确: CleanShot 2023-07-26 at 21 44 23@2x

为啥按格式输入,无结果输出呢
image

from codegeex2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.