Downloads · 30 days
113
13% of all-time downloads
SandLogicTechnologies/SmolLM-1.7B-Instruct-GGUF
SmolLM-1.7B-Instruct-GGUF is a text generation model from SandLogicTechnologies. 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.
We have quantized the SmolLM-1.7B-Instruct model into three variants:
Downloads · 30 days
113
13% of all-time downloads
All-time downloads
852
Public
Repo size
3.2 GB
Likes
1
Public
Click a slice to open those files.
.gguf3.2 GB · 100%
From the Hugging Face model README
We have quantized the SmolLM-1.7B-Instruct model into three variants:
These quantized models offer improved efficiency while maintaining performance.
Discover our full range of quantized language models by visiting our SandLogic Lexicon GitHub. To learn more about our company and services, check out our website at SandLogic.
SmolLM-1.7B-Instruct is designed for various natural language processing tasks, with capabilities including:
The model was finetuned on a mixture of datasets, including:
We offer three quantized versions of the SmolLM-1.7B-Instruct model:
These quantized models aim to reduce model size and improve inference speed while maintaining performance as close to the original model as possible.
pip install llama-cpp-python
Please refer to the llama-cpp-python documentation to install with GPU support.
Here's an example demonstrating how to use the high-level API for basic text completion:
from llama_cpp import Llama
llm = Llama(
model_path="./models/SmolLM-1.7B-Instruct.Q5_K_M.gguf",
verbose=False,
# n_gpu_layers=-1, # Uncomment to use GPU acceleration
# n_ctx=2048, # Uncomment to increase the context window
)
output = llm.create_chat_completion(
messages = [
{"role": "system", "content": "You're an AI assistant who help the user to answer his questions"},
{
"role": "user",
"content": "What is the capital of France."
}
]
)
print(output["choices"][0]['message']['content'])
You can download Llama models in gguf format directly from Hugging Face using the from_pretrained method. This feature requires the huggingface-hub package.
To install it, run: pip install huggingface-hub
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="SandLogicTechnologies/SmolLM-1.7B-Instruct-GGUF",
filename="*SmolLM-1.7B-Instruct.Q5_K_M.gguf",
verbose=False
)
By default, from_pretrained will download the model to the Hugging Face cache directory. You can manage installed model files using the huggingface-cli tool.
We thank the original developers of SmolLM for their contributions to the field of small language models. Special thanks to Georgi Gerganov and the entire llama.cpp development team for their outstanding contributions.
For any inquiries or support, please contact us at [email protected] or visit our support page.