Text Generation
Transformers
llm-rs
ggml
Inference Endpoints
bloom-ggml / README_TEMPLATE.md
LLukas22's picture
Update README_TEMPLATE.md
46cded6
|
raw
history blame
1.41 kB
metadata
tags:
  - llm-rs
  - ggml
pipeline_tag: text-generation

GGML covnerted Models of BigScience's Bloom models

Description

BLOOM is an autoregressive Large Language Model (LLM), trained to continue text from a prompt on vast amounts of text data using industrial-scale computational resources. As such, it is able to output coherent text in 46 languages and 13 programming languages that is hardly distinguishable from text written by humans. BLOOM can also be instructed to perform text tasks it hasn't been explicitly trained for, by casting them as text generation tasks.

Converted Models

$MODELS$

Usage

Python via llm-rs:

Installation

Via pip: pip install llm-rs

Run inference

from llm_rs import AutoModel

#Load the model, define any model you like from the list above as the `model_file`
model = AutoModel.from_pretrained("rustformers/bloom-ggml",model_file="bloom-3b-q4_0-ggjt.bin")

#Generate
print(model.generate("The meaning of life is"))

Rust via Rustformers/llm:

Installation

git clone --recurse-submodules [email protected]:rustformers/llm.git
cargo build --release

Run inference

cargo run --release -- bloom infer -m path/to/model.bin  -p "Tell me how cool the Rust programming language is:"