Views
No views yet
pip install llm-rs1from llm_rs import AutoModel
2
3#Load the model, define any model you like from the list above as the `model_file`
4model = AutoModel.from_pretrained("rustformers/pythia-ggml",model_file="pythia-70m-q4_0-ggjt.bin")
5
6#Generate
7print(model.generate("The meaning of life is"))git clone --recurse-submodules https://github.com/rustformers/llm.git
cd llm
cargo build --releasecargo run --release -- gptneox infer -m path/to/model.bin -p "Tell me how cool the Rust programming language is:"