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="sharpbai/baichuan-llama-7b")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("sharpbai/baichuan-llama-7b")
model = AutoModelForCausalLM.from_pretrained("sharpbai/baichuan-llama-7b")
Quick Links

baichuan-llama-7B

使用LLaMA格式保存的baichuan-7B。可以直接使用LlamaForCausalLM和LlamaTokenizer加载。 权重文件以405M的尺寸分片,方便并行快速下载。权重来自fireballoon/baichuan-llama-7b

baichuan-7B model saved in the format of the LLaMA model. You can directly use LlamaForCausalLM and LlamaTokenizer to load the model. The weight file is split into chunks with a size of 405M for convenient and fast parallel downloads, specifically for academic research purposes. The weights are sourced from fireballoon/baichuan-llama-7b

License: baichuan-7B License

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support