Downloads · 30 days
2K
15% of all-time downloads
duyntnet/SOLAR-10.7B-Instruct-v1.0-imatrix-GGUF
SOLAR-10.7B-Instruct-v1.0-imatrix-GGUF is a text generation model from duyntnet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Quantizations of https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0
Downloads · 30 days
2K
15% of all-time downloads
All-time downloads
12.8K
Public
Repo size
147 GB
Likes
0
Public
Click a slice to open those files.
.gguf147 GB · 100%
From the Hugging Face model README
Quantizations of https://huggingface.co/upstage/SOLAR-10.7B-Instruct-v1.0
This model has been fine-tuned primarily for single-turn conversation, making it less suitable for multi-turn conversations such as chat.
Make sure you have the correct version of the transformers library installed:
pip install transformers==4.35.2
Use the following Python code to load the model:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Upstage/SOLAR-10.7B-Instruct-v1.0")
model = AutoModelForCausalLM.from_pretrained(
"Upstage/SOLAR-10.7B-Instruct-v1.0",
device_map="auto",
torch_dtype=torch.float16,
)
conversation = [ {'role': 'user', 'content': 'Hello?'} ]
prompt = tokenizer.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, use_cache=True, max_length=4096)
output_text = tokenizer.decode(outputs[0])
print(output_text)
Below is an example of the output.
<s> ### User:
Hello?
### Assistant:
Hello, how can I assist you today? Please feel free to ask any questions or request help with a specific task.</s>