GithubHelp home page GithubHelp logo

Comments (5)

shibing624 avatar shibing624 commented on July 27, 2024

去掉 --with_prompt , 没做sft就不需要prompt

from medicalgpt.

nuoma avatar nuoma commented on July 27, 2024

谢谢解答,但是我用 python inference.py --model_type llama --base_model ../baichuan/model --interactive

得到的结果是:
Input:北京是
Setting pad_token_id to eos_token_id:2 for open-end generation.
Response: 北京是-. GSG pup: t gTs s1g ( C T fren—-. up-c-apm-eviner不需要 followed-..ta---.-p.--hest..-..-t.很快...-号.-il-...... Be........all...........--....-...-..l.8...-.. in. until..............any.........................der............................明alled..................oul..irts.......or...... be.....ore................................... eight.......9.............ber..able..................三分.................................ides..............3......................................

from medicalgpt.

shibing624 avatar shibing624 commented on July 27, 2024

Input:登鹳雀楼->王之涣

你可以先了解base model 和SFT后的模型的区别。用few-shot测试base model

from medicalgpt.

nuoma avatar nuoma commented on July 27, 2024

嗯嗯我了解,只是没把这个例子贴出来,结果是一样的:
Input:登鹳雀楼->王之涣\n夜雨寄北->
Setting pad_token_id to eos_token_id:2 for open-end generation.
Response: 登鹳雀楼->王之涣\n夜雨寄北-> ((tbsds andb to,m -d
or-nings fullmm any threeardsa3/ with?ak –italsoss takes ($ushundensstatrd &.sdston;act --aaen。^@woesaredbstand

from medicalgpt.

shibing624 avatar shibing624 commented on July 27, 2024

更新代码,template_name=baichuan-chat兼容原版模型推理。

from medicalgpt.

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.