pip install ctransformers
from ctransformers import AutoModelForCausalLM

llm = AutoModelForCausalLM.from_pretrained('marella/gpt-2-ggml')

print(llm('AI is going to'))

See https://github.com/marella/ctransformers

Downloads last month
1,045
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no pipeline_tag.

Spaces using marella/gpt-2-ggml 2