Based on the search results, here's a breakdown of open-source GGUF-quantized LLMs in the 7b and 13b sizes that are relevant for CPU inference and good at information reasoning and HellaSwag-type benchmarks:
Key Models and Observations:
- Llama 2 (7B and 13B): Llama 2 models are frequently mentioned and are available in GGUF format from various sources like TheBloke on Hugging Face [12, 13][1]. Benchmarks show Llama 2 7B and 13B performing well on HellaSwag [1, 6]. They are designed with an optimized transformer architecture and fine-tuned versions (Llama-2-Chat) are optimized for dialogue, performing well on various benchmarks including reasoning [4, 12, 13]. They are suitable for CPU inference, especially with appropriate quantization levels (like Q4_K_M) [11, 17].
- Mistral 7B: Mistral 7B is highlighted as a strong performer, even outperforming Llama 2 13B on some benchmarks [8]. It uses Sliding Window Attention (SWA) for speed improvements [8][2]. Mistral 7B and models based on it are available in GGUF format [9, 14][3][5][6]. It shows good performance on reasoning and HellaSwag [1, 14].
- Solar 10.7B: Mentioned as having great quality and good speed, with GPU acceleration possible, but also viable for CPU [2][7]. While slightly larger than the requested 7b/13b, it's close to 13b and worth considering.
- SeaLLM-7B-v2: This model is specifically mentioned as achieving 7B-SOTA on Zero-shot CoT GSM8K (math reasoning) and scoring competitively on commonsense benchmarks like Arc-C, Winogrande, and HellaSwag [7][8]. It is available in GGUF format [7][6][9][10].
- Fine-tuned and Merged Models: The search results mention several fine-tuned or merged models based on Llama 2 and Mistral, which often inherit or improve upon the base model's reasoning and commonsense abilities. Examples include:
- Mythalion-13B-GGUF: Showed good performance on multiple-choice questions (reasoning) in one test [10].
- LLaMA2-13B-Tiefighter-GGUF: Also performed well on multiple-choice questions and instruction following [10].
- Speechless models (based on Mistral and CodeLlama): Some variations show good HellaSwag scores and reasoning abilities [14].
- CodeLlama (7B and 13B): While primarily focused on code, CodeLlama models are based on Llama 2 and are available in GGUF [15, 19]. Some fine-tuned versions might have improved general reasoning, but their primary strength is coding [15].
- Gemma 7B: A newer open-source model from Google, available in GGUF. Benchmarks show it performing well on various tasks, including MMLU and potentially reasoning [1, 8][11].
CPU Inference and GGUF:
The GGUF format is specifically designed for CPU and CPU+GPU inference using tools like llama.cpp [11, 13]. The quantization levels (like Q4_K_M, Q5_K_M) are important for balancing model size, speed, and quality on CPU. Lower quantization levels (e.g., Q3, Q2) can fit into less RAM but might have a more significant impact on quality, especially for reasoning tasks [2, 11]. Higher quantizations (e.g., Q5, Q6, Q8) offer better quality but require more RAM and computational power [2, 17]. For purely CPU inference, models with lower parameter counts (7B) or highly quantized versions of larger models (13B Q4_K_M or lower) are generally more performant [17].
Reasoning and HellaSwag:
Benchmarks like the Hugging Face Open LLM Leaderboard and individual model evaluations often include HellaSwag and other reasoning benchmarks (like MMLU, ARC, Winogrande, GSM8K) [1, 4, 6, 7, 14]. Models that perform well on these benchmarks are generally considered good at information reasoning and commonsense tasks.
Recommendations:
Based on the information, here are some open-source GGUF-quantized LLMs in the 7b and 13b range that are strong candidates for CPU inference and excel in reasoning and HellaSwag-type benchmarks:
7B Models:
- Mistral 7B (and fine-tuned variants like OpenOrca or Speechless variants): Generally high-performing for their size, good on benchmarks, and efficient due to SWA. Look for GGUF quants like Q5_K_M or Q8_0 for better quality on CPU if memory allows [17, 2].
- Llama 2 7B (and fine-tuned variants): A solid baseline with good performance on reasoning and HellaSwag. Available in various GGUF quants [1, 13, 4][5].
- SeaLLM-7B-v2: Specifically noted for strong performance in reasoning and commonsense benchmarks, including HellaSwag [7][8].
- Gemma 7B: A promising newer model with good benchmark results [1, 8].
13B Models:
- Llama 2 13B (and fine-tuned variants like Tiefighter, Mythalion): Offers improved reasoning compared to 7B models, although potentially slower on CPU [10, 17]. Look for GGUF quants like Q4_K_M or Q5_K_S to balance quality and performance on CPU [11, 2].
Considerations for CPU Inference:
- Quantization Level: Choose the highest quantization level that comfortably fits within your system's RAM for the best balance of speed and quality. Q4_K_M and Q5_K_M are often recommended starting points for 7B and 13B models on typical systems [11, 2, 17].
- RAM: More RAM is better for running larger models or higher quantizations efficiently on the CPU.
llama.cpp: Ensure you are using a recent version of llama.cpp for the best performance and GGUF support.
To find the specific GGUF files for these models, you can typically search on Hugging Face, often under repositories managed by users like "TheBloke," who are well-known for providing GGUF conversions of popular models [12, 13, 19]. Always check the model card or associated documentation for benchmark results and recommended usage.