Instructions to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf with Ollama:
ollama run hf.co/RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M
- Unsloth Studio
How to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-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 RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf to start chatting
- Docker Model Runner
How to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf:Q4_K_M
Run and chat with the model
lemonade run user.EpistemeAI_-_Fireball-MathMistral-Nemo-Base-2407-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
Fireball-MathMistral-Nemo-Base-2407 - GGUF
- Model creator: https://huggingface.co/EpistemeAI/
- Original model: https://huggingface.co/EpistemeAI/Fireball-MathMistral-Nemo-Base-2407/
Original model description:
base_model: unsloth/Mistral-Nemo-Base-2407-bnb-4bit language: - en license: apache-2.0 tags: - text-generation-inference - transformers - unsloth - mistral - trl datasets: - meta-math/MetaMathQA
Uploaded model
- Developed by: EpistemeAI
- License: apache-2.0
- Finetuned from model : unsloth/Mistral-Nemo-Base-2407-bnb-4bit
- This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.
Fireball-MathMistral-Nemo-Base-2407
This model is fine-tune to provide better math response than Mistral-Nemo-Base-2407
Training Dataset
Supervised fine-tuning with datasets with meta-math/MetaMathQA
This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.
Model Card for Mistral-Nemo-Base-2407
The Fireball-MathMistral-Nemo-Base-2407 Large Language Model (LLM) is a pretrained generative text model of 12B parameters, it significantly outperforms existing models smaller or similar in size.
For more details about this model please refer to our release blog post.
Key features
- Released under the Apache 2 License
- Trained with a 128k context window
- Trained on a large proportion of multilingual and code data
- Drop-in replacement of Mistral 7B
Model Architecture
Mistral Nemo is a transformer model, with the following architecture choices:
- Layers: 40
- Dim: 5,120
- Head dim: 128
- Hidden dim: 14,436
- Activation Function: SwiGLU
- Number of heads: 32
- Number of kv-heads: 8 (GQA)
- Vocabulary size: 2**17 ~= 128k
- Rotary embeddings (theta = 1M)
Demo
After installing mistral_inference, a mistral-demo CLI command should be available in your environment.
Transformers
NOTE: Until a new release has been made, you need to install transformers from source:
pip install git+https://github.com/huggingface/transformers.git
If you want to use Hugging Face transformers to generate text, you can do something like this.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "EpistemeAI/Fireball-MathMistral-Nemo-Base-2407"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tokenizer("Hello my name is", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Unlike previous Mistral models, Mistral Nemo requires smaller temperatures. We recommend to use a temperature of 0.3.
Note
Mistral-Nemo-Base-2407 is a pretrained base model and therefore does not have any moderation mechanisms.
- Downloads last month
- 1,784
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
