Downloads · 30 days
27
0% of all-time downloads
erfanvaredi/jais-7b-chat
jais-7b-chat is a text generation model from erfanvaredi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is the double quantized version of jais-13b-chat by core42. The aim is to run the model in GPU poor machines. For high quality tasks its better to use the 13b model not quantized one.
Downloads · 30 days
27
0% of all-time downloads
All-time downloads
9.5K
Public
Parameters
13.4B
7.4 GB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors7.4 GB · 100%
How the weights are stored.
U813B · 97%
From the Hugging Face model README
This model is the double quantized version of jais-13b-chat by core42. The aim is to run the model in GPU poor machines. For high quality tasks its better to use the 13b model not quantized one.
<strong>Model creator</strong>: Core42
<strong>Original model</strong>: jais-13b-chat
Just run it as a text-generation pipeline task.
It successfully has been tested on Google Colab Pro T4 instance.
pip install -Uq huggingface_hub transformers bitsandbytes xformers accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline, TextStreamer, BitsAndBytesConfig
tokenizer = AutoTokenizer.from_pretrained("erfanvaredi/jais-7b-chat")
model = AutoModelForCausalLM.from_pretrained(
"erfanvaredi/jais-7b-chat",
trust_remote_code=True,
device_map='auto',
)
# Create a pipeline
pipe = pipeline(model=model, tokenizer=tokenizer, task='text-generation')
chat = [
{"role": "user", "content": 'Tell me a funny joke about Large Language Models.'},
]
prompt = pipe.tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
streamer = TextStreamer(
tokenizer,
skip_prompt=True,
stop_token=[tokenizer.eos_token]
)
pipe(
prompt,
streamer=streamer,
max_new_tokens=256,
temperature=0,
)
:)