Load at AI/load a model from it's directory. Model name is "rexwang8/qilin-lit-6b". If you get a config.json not found error, reload the program and give it some time to find your GPUs.
Example Code
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained('rexwang8/qilin-lit-6b')
tokenizer = AutoTokenizer.from_pretrained('rexwang8/lit-6b')
prompt = '''I had eyes but couldn't see Mount Tai!'''
input_ids = tokenizer.encode(prompt, return_tensors='pt')
output = model.generate(input_ids, do_sample=True, temperature=1.0, top_p=0.9, repetition_penalty=1.2, max_length=len(input_ids[0])+100, pad_token_id=tokenizer.eos_token_id)
generated_text = tokenizer.decode(output[0])
print(generated_text)
qilin-lit-6b huggingface.co is an AI model on huggingface.co that provides qilin-lit-6b's model effect (), which can be used instantly with this rexwang8 qilin-lit-6b model. huggingface.co supports a free trial of the qilin-lit-6b model, and also provides paid use of the qilin-lit-6b. Support call qilin-lit-6b model through api, including Node.js, Python, http.
qilin-lit-6b huggingface.co is an online trial and call api platform, which integrates qilin-lit-6b's modeling effects, including api services, and provides a free online trial of qilin-lit-6b, you can try qilin-lit-6b online for free by clicking the link below.
rexwang8 qilin-lit-6b online free url in huggingface.co:
qilin-lit-6b is an open source model from GitHub that offers a free installation service, and any user can find qilin-lit-6b on GitHub to install. At the same time, huggingface.co provides the effect of qilin-lit-6b install, users can directly use qilin-lit-6b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.