Views
No views yet
| Name | Based on | Type | Container | GGML Version |
|---|---|---|---|---|
| open_llama_3b-f16.bin | openlm-research/open_llama_3b | F16 | GGML | V3 |
| open_llama_3b-q4_0-ggjt.bin | openlm-research/open_llama_3b | Q4_0 | GGJT | V3 |
| open_llama_3b-q5_1-ggjt.bin | openlm-research/open_llama_3b | Q5_1 | GGJT | V3 |
| open_llama_7b-f16.bin | openlm-research/open_llama_7b | F16 | GGML | V3 |
| open_llama_7b-q4_0-ggjt.bin | openlm-research/open_llama_7b | Q4_0 | GGJT | V3 |
| open_llama_7b-q5_1-ggjt.bin | openlm-research/open_llama_7b | Q5_1 | GGJT | V3 |
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/open-llama-ggml",model_file=" open_llama_7b-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 -- llama infer -m path/to/model.bin -p "Tell me how cool the Rust programming language is:"