How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="wangrongsheng/MiniGPT-4-LLaMA")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("wangrongsheng/MiniGPT-4-LLaMA")
model = AutoModelForCausalLM.from_pretrained("wangrongsheng/MiniGPT-4-LLaMA")
Quick Links

这是MiniGPT-4的转化权重,利用的教程是MiniGPT-4/PrepareVicuna.md ,使用它,您可以不需要LLAMA-13B和vicuna-13b-delta-v0进行转化。

Downloads last month
789
Inference Providers NEW

Space using wangrongsheng/MiniGPT-4-LLaMA 1