Comments (5)
from chatglm-webui.
我不是作者。
在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.
RWKV不是GPT模型,目前也还没有加入Huggingface transformers(社区在做,但进度缓慢)
所以目前最方便是调用 RWKV pip package
from chatglm-webui.
https://huggingface.co/docs/transformers/custom_models
from chatglm-webui.
https://github.com/roj234/ChatGLM-webui/tree/rwkv
话说rwkv的PIPELINE的sample_logits不知道为什么很卡
还有猫娘真的很哲学,而且出现概率并不是很低
from chatglm-webui.
Related Issues (20)
- Something went wrong Expecting value: line 1 column 1 (char 0) HOT 1
- 这有一个需求:输出的公式,看不清,如果能得到优化的话,效果会更好
- 内存泄漏
- hgg
- 能用.safetensors格式加载chatglm-6b-int4吗?
- share选项无法使用,反代出现问题
- Something went wrong Expecting value: line 1 column 1 (char 0) HOT 1
- 如果像stable diffusion webui 的启动器一样,有个控制台可以看实时运行情况就好了
- mac urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3. HOT 1
- 如何使用GPU推理?
- gradio 出现style报错 HOT 9
- 求助,更新最新版本后运行出错 HOT 3
- UI画面不全,输入发送不了
- UI画面不全,输入发送不了 HOT 1
- UI显示错误,发送按键无法点击 HOT 2
- 图1requirements文件好像没有指定好gradio版本,导致我重新安装之后一直卡在图2 HOT 1
- 报错TypeError: Blocks.launch() got an unexpected keyword argument 'root_path' HOT 4
- 求助:无法使用GPU推理且显示:assert vocab_file is not None AssertionError
- 希望支持IPv6
- 求助:对话框发送“hi”,一直没有reponse?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatglm-webui.