An Apache-2 licensed chatbot trained over a massive curated corpus of assistant interactions including word problems, multi-turn dialogue, code, poems, songs, and stories.
Downloading without specifying revision defaults to main/v1.0.
To use it for inference with Cuda, run
python
1from transformers import AutoTokenizer, pipeline
2import transformers
3import torch
45tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)6model.to("cuda:0")78prompt ="Describe a painting of a falcon in a very detailed way."# Change this to your prompt9prompt_template =f"### Instruction: {prompt}\n### Response:"1011tokens = tokenizer(prompt_template, return_tensors="pt").input_ids.to("cuda:0")12output = model.generate(input_ids=tokens, max_new_tokens=256, do_sample=True, temperature=0.8)1314# Print the generated text15print(tokenizer.decode(output[0]))
GPT4All is made possible by our compute partner Paperspace.
Trained on a DGX cluster with 8 A100 80GB GPUs for ~12 hours. Using Deepspeed + Accelerate, we use a global batch size of 256 with a learning rate of 2e-5. More information can be found in the repo.