Coder Social home page Coder Social logo

Comments (5)

l15y avatar l15y commented on September 15, 2024 1

https://github.com/l15y/wenda

from chatglm-webui.

roj234 avatar roj234 commented on September 15, 2024

我不是作者。

在huggingface的仓库里写config.json,然后就可以加参数--model BlinkDL/rwkv-4-raven,而不需要这边做什么改动
因为用的是AutoModel.from_pretrained
举例
{
"_name_or_path": "THUDM/chatglm-6b",
"architectures": [
"ChatGLMModel"
],
"auto_map": {
"AutoConfig": "configuration_chatglm.ChatGLMConfig",
"AutoModel": "modeling_chatglm.ChatGLMForConditionalGeneration",
"AutoModelForSeq2SeqLM": "modeling_chatglm.ChatGLMForConditionalGeneration"
},
"bos_token_id": 150004,
"eos_token_id": 150005,
"hidden_size": 4096,
"inner_hidden_size": 16384,
"layernorm_epsilon": 1e-05,
"max_sequence_length": 2048,
"model_type": "chatglm",
"num_attention_heads": 32,
"num_layers": 28,
"position_encoding_2d": true,
"torch_dtype": "float16",
"transformers_version": "4.23.1",
"use_cache": false,
"vocab_size": 150528
}
和ChatGLM项目的其余几个py

from chatglm-webui.

BlinkDL avatar BlinkDL commented on September 15, 2024

RWKV不是GPT模型,目前也还没有加入Huggingface transformers(社区在做,但进度缓慢)

所以目前最方便是调用 RWKV pip package

from chatglm-webui.

wfjsw avatar wfjsw commented on September 15, 2024

https://huggingface.co/docs/transformers/custom_models

from chatglm-webui.

roj234 avatar roj234 commented on September 15, 2024

https://github.com/roj234/ChatGLM-webui/tree/rwkv

话说rwkv的PIPELINE的sample_logits不知道为什么很卡
还有猫娘真的很哲学,而且出现概率并不是很低

from chatglm-webui.

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.