mav23 / SmolLM-360M-Instruct-GGUF

huggingface.co
Total runs: 274
24-hour runs: 0
7-day runs: 5
30-day runs: 147
Model's Last Updated: October 20 2024

Introduction of SmolLM-360M-Instruct-GGUF

Model Details of SmolLM-360M-Instruct-GGUF

SmolLM-360M-Instruct

SmolLM
Model Summary

Chat with the model at: https://huggingface.co/spaces/HuggingFaceTB/instant-smol

SmolLM is a series of language models available in three sizes: 135M, 360M, and 1.7B parameters.

These models are trained on SmolLM-Corpus , a curated collection of high-quality educational and synthetic data designed for training LLMs. For further details, we refer to our blogpost .

To build SmolLM-Instruct, we finetune the base models on publicly available datasets.

Changelog
Release Description
v0.1 Initial release of SmolLM-Instruct. We finetune on the permissive subset of the WebInstructSub dataset, combined with StarCoder2-Self-OSS-Instruct . Then, we perform DPO (Direct Preference Optimization) for one epoch on HelpSteer for the 135M and 1.7B models, and argilla/dpo-mix-7k for the 360M model.
v0.2 We changed the finetuning mix to datasets more suitable for smol models. We train on a new dataset of 2k simple everyday conversations we generated by llama3.1-70B everyday-conversations-llama3.1-2k , Magpie-Pro-300K-Filtere , StarCoder2-Self-OSS-Instruct , and a small subset of OpenHermes-2.5

v0.2 models are better at staying on topic and responding appropriately to standard prompts, such as greetings and questions about their role as AI assistants. SmolLM-360M-Instruct (v0.2) has a 63.3% win rate over SmolLM-360M-Instruct (v0.1) on AlpacaEval. You can find the details here .

You can load v0.1 models by specifying revision="v0.1" in the transformers code:

model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM-360M-Instruct", revision="v0.1")
Usage
Local Applications

⚡ For local applications, you can find optimized implementations of the model in MLC, GGUF and Transformers.js formats, in addition to fast in-browser demos in this collection: https://huggingface.co/collections/HuggingFaceTB/local-smollms-66c0f3b2a15b4eed7fb198d0

We noticed that 4bit quantization degrades the quality of the 135M and 360M, so we use q016 for MLC and ONNX/Transformers.js checkpoints for the WebGPU demos. We also suggest using temperature 0.2 and top-p 0.9.

Transformers
pip install transformers
# pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM-360M-Instruct"

device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

messages = [{"role": "user", "content": "What is the capital of France."}]
input_text=tokenizer.apply_chat_template(messages, tokenize=False)
print(input_text)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))
Chat in TRL

You can also use the TRL CLI to chat with the model from the terminal:

pip install trl
trl chat --model_name_or_path HuggingFaceTB/SmolLM-360M-Instruct --device cpu
Limitations

Additionally, the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data, we invite users to leverage them as assistive tools rather than definitive sources of information. We find that they can handle general knowledge questions, creative writing and basic Python programming. But they are English only and may have difficulty with arithmetics, editing tasks and complex reasoning. For more details about the models' capabilities, please refer to our blog post .

Training parameters

We train the models using the alignment-handbook with the datasets mentioned in the changelog, using these parameters for v0.2 (most of them are from Zephyr Gemma recipe):

  • 1 epoch
  • lr 1e-3
  • cosine schedule
  • warmup ratio 0.1
  • global batch size 262k tokens

You can find the training recipe here: https://github.com/huggingface/alignment-handbook/tree/smollm/recipes/smollm

Citation

@misc{allal2024SmolLM,
      title={SmolLM - blazingly fast and remarkably powerful}, 
      author={Loubna Ben Allal and Anton Lozhkov and Elie Bakouch and Leandro von Werra and Thomas Wolf},
      year={2024},
}

Runs of mav23 SmolLM-360M-Instruct-GGUF on huggingface.co

274
Total runs
0
24-hour runs
2
3-day runs
5
7-day runs
147
30-day runs

More Information About SmolLM-360M-Instruct-GGUF huggingface.co Model

More SmolLM-360M-Instruct-GGUF license Visit here:

https://choosealicense.com/licenses/apache-2.0

SmolLM-360M-Instruct-GGUF huggingface.co

SmolLM-360M-Instruct-GGUF huggingface.co is an AI model on huggingface.co that provides SmolLM-360M-Instruct-GGUF's model effect (), which can be used instantly with this mav23 SmolLM-360M-Instruct-GGUF model. huggingface.co supports a free trial of the SmolLM-360M-Instruct-GGUF model, and also provides paid use of the SmolLM-360M-Instruct-GGUF. Support call SmolLM-360M-Instruct-GGUF model through api, including Node.js, Python, http.

SmolLM-360M-Instruct-GGUF huggingface.co Url

https://huggingface.co/mav23/SmolLM-360M-Instruct-GGUF

mav23 SmolLM-360M-Instruct-GGUF online free

SmolLM-360M-Instruct-GGUF huggingface.co is an online trial and call api platform, which integrates SmolLM-360M-Instruct-GGUF's modeling effects, including api services, and provides a free online trial of SmolLM-360M-Instruct-GGUF, you can try SmolLM-360M-Instruct-GGUF online for free by clicking the link below.

mav23 SmolLM-360M-Instruct-GGUF online free url in huggingface.co:

https://huggingface.co/mav23/SmolLM-360M-Instruct-GGUF

SmolLM-360M-Instruct-GGUF install

SmolLM-360M-Instruct-GGUF is an open source model from GitHub that offers a free installation service, and any user can find SmolLM-360M-Instruct-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of SmolLM-360M-Instruct-GGUF install, users can directly use SmolLM-360M-Instruct-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SmolLM-360M-Instruct-GGUF install url in huggingface.co:

https://huggingface.co/mav23/SmolLM-360M-Instruct-GGUF

Url of SmolLM-360M-Instruct-GGUF

SmolLM-360M-Instruct-GGUF huggingface.co Url

Provider of SmolLM-360M-Instruct-GGUF huggingface.co

mav23
ORGANIZATIONS

Other API from mav23

huggingface.co

Total runs: 1.2K
Run Growth: 509
Growth Rate: 41.42%
Updated:October 31 2024
huggingface.co

Total runs: 861
Run Growth: 546
Growth Rate: 63.41%
Updated:November 30 2024
huggingface.co

Total runs: 585
Run Growth: 570
Growth Rate: 97.44%
Updated:November 21 2024
huggingface.co

Total runs: 213
Run Growth: 149
Growth Rate: 69.95%
Updated:November 19 2024
huggingface.co

Total runs: 159
Run Growth: 127
Growth Rate: 79.87%
Updated:October 28 2024
huggingface.co

Total runs: 148
Run Growth: 25
Growth Rate: 16.89%
Updated:December 04 2024
huggingface.co

Total runs: 133
Run Growth: 36
Growth Rate: 27.07%
Updated:December 04 2024
huggingface.co

Total runs: 115
Run Growth: 18
Growth Rate: 15.65%
Updated:November 30 2024
huggingface.co

Total runs: 114
Run Growth: -3.5K
Growth Rate: -3107.02%
Updated:October 13 2024