Downloads · 30 days
29
14% of all-time downloads
jiangchengchengNLP/opt-6.7B-AWQ-8INT
opt-6.7B-AWQ-8INT is a text generation model from jiangchengchengNLP. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a model developed based on Facebook's OPT-6.7B, utilizing the Adaptive Weight Quantization (AWQ) method. The model optimizes inference performance and memory usage by merging quantization layers with the origi…
Downloads · 30 days
29
14% of all-time downloads
All-time downloads
210
Public
Parameters
6.9B
7.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.1 GB · 100%
How the weights are stored.
I86.6B · 97%
From the Hugging Face model README
This is a model developed based on Facebook's OPT-6.7B, utilizing the Adaptive Weight Quantization (AWQ) method. The model optimizes inference performance and memory usage by merging quantization layers with the original model. It was calibrated using a random sample of 50 entries from the GBS8K dataset, with a sequence length of 512 and a step size of 0.02.
jiangchengchengNLP
AWQ work and Meta's model
No one
Transformer-based language model
Supports multiple languages for natural language processing tasks.
Apache License 2.0
OPT-6.7B
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "jiangchengchengNLP/opt-6.7B-AWQ-8INT"
tokenizer_id="facebook/opt-6.7b"
tokenizer = AutoTokenizer.from_pretrained(tokenizer_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
input_text = "Hello, I'm am conscious and"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda()
generated_ids = model.generate(input_ids)
tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
["Hello, I'm am conscious and aware of my surroundings. I'm not sure what you mean"]
The model was fine-tuned using a random sample of 50 entries from the GBS8K dataset.
Cloud-based GPUs (e.g., NVIDIA V100 or A100)
PyTorch, Transformers library from Hugging Face