Instructions to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with Ollama:
ollama run hf.co/TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
- Unsloth Studio
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with Docker Model Runner:
docker model run hf.co/TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
- Lemonade
How to use TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SOLAR-10.7B-Instruct-v1.0-GGUF-Q4_K_M
List all available models
lemonade list
No memory within model?
Hi Tom,
First off, thanks for all the great work you do. Many of us appreciate it. I only have an RTX 2070 to work with so I appreciate the quantized models as many others I'm sure.
Secondly, I was wondering if there was a way you could fine tune the SOLAR-10.7B-Instruct model so that it has a memory of previous inputs?
For example, if I prompt: what is the fastest car in the world. It gives an answer about the fastest car. However if I then ask something like: 'Tell me more about this car' It's completely oblivious to what it already told me. It has no memory at all which quite frankly makes the model pretty useless.
Thanks again.
@jdc4429 you have to understand llms are stateless so they don’t have stored memory.
Rather you have to input the context like this.
Let’s say the first question is
User:
what is the fastest car
Assistant:
Then you would get the output of solar model
So
User:
What is the fastest car
Assistant:
The fastest car is thrust ssc
And then you would do
User:
What is the fastest car
Assistant:
The fastest car is thrust ssc
User:
Tell me more
Assistant:
And you would go on and on like that until it reaches the maximum context
In other models the context from previous questions stays in memory until you reset the chat.. this one does not. Is it possible to change this?
@jdc4429 hmm no, thats usually just a feature like in text generation web ui. 99% of the models including big llm that uses llama, mixtral, mistral, falcon, mpt have any memory storage thing, you can only pass previous context like in solar 10b. Even chatgpt or gpt4 doesnt have that
@jlzhou there is blenderbot model but its a very early model from meta and its horrible compared to even tinyllama 1.1b . Blenderbot only has a very weak chatting ability and basically 0 knowledge abt anything else. It does have the ability to store memory without passing previous context tho.