Downloads · 30 days
23
22% of all-time downloads
SearchUnify-ML/xgen-7b-8k-open-instruct-gptq
xgen-7b-8k-open-instruct-gptq is a text generation model from SearchUnify-ML. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc.
With its industry-first robust LLM Integrations across its suite of products (Cognitive Search, SUVA, Knowbler, Escalation Predictor, Agent Helper and Community Helper) coupled with the federated retrieval augmented g…
Downloads · 30 days
23
22% of all-time downloads
All-time downloads
105
Public
Repo size
4.2 GB
Likes
4
Public
Click a slice to open those files.
.bin4.2 GB · 100%
From the Hugging Face model README
With its industry-first robust LLM Integrations across its suite of products (Cognitive Search, SUVA, Knowbler, Escalation Predictor, Agent Helper and Community Helper) coupled with the federated retrieval augmented generation (FRAG) architecture, SearchUnify's unified cognitive platform fetches relevant information or responses to deliver more accurate and contextually appropriate support and self-service experiences.
Leveraging the state-of-the-art GPTQ quantization method, SearchUnify optimized the XGen-7B Model for low memory footprint and rapid response generation.
These are GPTQ 4bit model files for VMWare's XGEN 7B 8K Open Instruct. It is the result of quantizing to 4bit using GPTQ-for-LLaMa.
First, make sure you have AutoGPTQ installed:
pip install auto-gptq
Second, install tiktoken in order to use the tokenizer
pip install tiktoken
from transformers import AutoTokenizer
from auto_gptq import AutoGPTQForCausalLM
model_name_or_path = "SearchUnify-ML/xgen-7b-8k-open-instruct-gptq"
model_basename = "gptq_model-4bit-128g"
use_triton = False
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path,
use_fast=False,
trust_remote_code=True)
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
model_basename=model_basename,
use_safetensors=False,
trust_remote_code=True,
device="cuda:0",
use_triton=use_triton)
# Note: check the prompt template is correct for this model.
prompt = "Explain the rules of field hockey to a novice."
prompt_template = f'''### Instruction: {prompt}
### Response:'''
print("\n\n*** Generate:")
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
output = model.generate(inputs=input_ids, temperature=0.3, max_new_tokens=512)
print(f"\n\n {tokenizer.decode(output[0]).split('### Response:')[1]}")