Instructions to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-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 mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-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 mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF with Ollama:
ollama run hf.co/mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DragonAI-Python-SmolLM2-1.7B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
DragonAI-Python-SmolLM2_model.py???
Can you provide a functional pytorch model.py and train.py that supports at least inference mode of this model using the hyperparameters in the config.json. There is no way to do model architecture research or educational experimentation on "autotransformer" which conceals the actual python scripts. Further, Huggingface sometimes vandalizes the hidden autotransformer model.py making it inoperable. For example the SmolLM2 weights are already useless for research because of a change in "autotransformers" that makes them have a size mismatch in the projections (k and v) apparently because of 3x re-use of k and v projection matrices. See e.g., https://huggingface.co/HuggingFaceTB/SmolLM2-360M/discussions The published SmolLM2 weights have already become unusable and unstudyable without providing a fixed and definite model.py and train.py to document how to implement the unusual config hyperparameters. Please help keep models usable and help the independent research community by providing working pytorch model.py and train.py for each of your model variants.
Hi, this repo only contains gguf files, not a transformers model. You probably meant to ask this on the original model.
Yes, I already asked THERE (original model) for Huggingface to publish a standalone model.py (pytorch only, not "autotransformers"), but the request is ignored. This behavior hinders research and innovation and model optimization. The mentality seems to be that the only interest should be training new models and then deployment for Application Development, not modifying and optimizing or porting the underlying model.py code. Here is an audio discussion about the disappointing direction of the current fixation on training and scaling without re-examination of model architecture. https://huggingface.co/MartialTerran/Toy_GPTs_LLMs_for_CPU_Educational
specifically:
https://huggingface.co/MartialTerran/Toy_GPTs_LLMs_for_CPU_Educational/blob/main/The%20AI%20Revolution_%20A%20Debate.wav
You will not reach huggingface either there or here, unfortunately, these are just pages for a specific model.