Instructions to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="draganjovanovich/prodigy-sm-base-v0.1-GGUF", filename="prodigy-sm-base-v0.1-Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf draganjovanovich/prodigy-sm-base-v0.1-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 draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf draganjovanovich/prodigy-sm-base-v0.1-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 draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with Ollama:
ollama run hf.co/draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
- Unsloth Studio
How to use draganjovanovich/prodigy-sm-base-v0.1-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 draganjovanovich/prodigy-sm-base-v0.1-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 draganjovanovich/prodigy-sm-base-v0.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for draganjovanovich/prodigy-sm-base-v0.1-GGUF to start chatting
- Docker Model Runner
How to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
- Lemonade
How to use draganjovanovich/prodigy-sm-base-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull draganjovanovich/prodigy-sm-base-v0.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.prodigy-sm-base-v0.1-GGUF-Q4_K_M
List all available models
lemonade list
Prodigy SM Base v0.1
In our latest endeavour, we performed continued pre-training of a large language model (Mistral-7b-v0.1) to understand and generate text in new languages, including Serbian, Bosnian and Croatian using an innovative approach.
Rather than depending only on extensive datasets in the target language, our method utilizes a more compact set of both synthetic and human-curated data along with some mixture of CC Web data, which is implemented in two strategic phases:
- Establishing a comprehensive demonstration of all grammatical and orthographic rules pertinent to the language.
- Supplying a diverse array of examples that not only reinforce these rules but also integrate a wide range of linguistic nuances.
While our approach is uniquely tailored to our objectives, we have drawn some inspiration from recent advancements in language model training. Specifically, the conceptual strategies discussed in the paper ADAPTING LARGE LANGUAGE MODELS VIA READING COMPREHENSION provided valuable insights, though our methods diverge significantly in practice. By adopting this inspired approach, we aim to efficiently teach the model new languages with a balanced blend of accuracy and linguistic diversity.
So... Did it work?!
Yes!
See the benchmark results, or even better, download the model and try it yourself. As you know by now, there's no better benchmark than a quick 'try it yourself' vibe check. :)

Here, we demonstrate results of benchmark that is not frequently performed, yet equally important: how adapting the model for a new language impacted its original English-only performance.

*All evals are performed in zero shot manner.
*Also bear in mind that llama-2-7b, llama-3-8b and mistral-7b models compared to Prodigy SM base aren't trained on extensive Serbian language datasets, and these benchmarks demonstrate that primarily English models can be adapted to other languages.
So, as you can see, we successfully improved the original model's performance for Serbian language use cases while retaining or even slightly improving its performance for English language.
Training results
Training results of continued pre-training of mistral-7b-v0.1
As last experimental step we merged produced model with Mistral-7B-v0.1 and two earlier checkpoints from prodigy-sm-base using Model Stock method.
Notes
As this is base model, there is no chat template or strict chat following capabilities, this model is best candidate for further pre-train on Serbian language as there is a lot more room for improvement (you can hit sweet spot), or next step in the pipeline, such as some form of chat or instruct tuning.
If you want model that is already instruction tuned we did that too, check Prodigy SM Instruct v0.1
Prodigy SM Instruct v0.1
๐prodigy-sm-instruct COMING SOON
And stay tuned for:
prodigy-sm-base (llama-3.1) COMING SOON
prodigy-sm-instruct (llama-3.1) COMING SOON
๐ข Also we are excited to announce that iskon.ai will soon launch an API platform featuring advanced Prodigy series of models, advanced AI tools and much more! ๐
Thanks
- gordicaleksa/serbian-llm-eval and his community for curating translations and adaptation of lm-evaluation-harness that we used to perform benchmarks.
- jondurbin for amazing airoboros framework
- teknium for various insights shared on discord and twitter aka x.com
- Eric for various insights shared on discord and twitter aka x.com
- mergekit for model merging tools
Huge thanks to Redmond.ai for generous DGX cloud credits redmond.ai
- Downloads last month
- 25