CoolFace
Modelpublic

JuhaD2/sports-science-3b-gguf

sourceHugging Facellama3.2updated 7mo agoView on Hugging Face
2likes43downloads
Model Card

Sports Science AI — Llama 3.2 3B Instruct (Q4KM GGUF)

A fine-tuned version of meta-llama/Llama-3.2-3B-Instruct specialised in sports science, trained to answer questions about HRV analysis, training load management, recovery science, biomechanics, and sports nutrition.

The model is quantized to Q4KM GGUF format for efficient on-device inference via llama.cpp and llama.rn (React Native).


Model Details

PropertyValue
Base modelmeta-llama/Llama-3.2-3B-Instruct
Fine-tuning methodQLoRA (PEFT)
LoRA rank (r)16
LoRA alpha32
Target modulesqproj, kproj, vproj, oproj, gateproj, upproj, down_proj
Training epochs2
Training pairs22,068
Validation pairs2,453
Learning rate2e-4 (cosine schedule)
QuantizationQ4KM (llama.cpp)
File size~1.9 GB

Files

FileSizeDescription
model_q4km.gguf~1.9 GBQ4KM quantized model — use this for inference
tokenizer.json~16 MBTokenizer vocabulary
tokenizer_config.jsonsmallTokenizer settings
special_tokens_map.jsonsmallSpecial token definitions

Training Dataset

The model was fine-tuned on a custom instruction-response dataset derived from sports science research papers across 5 domains:

DomainPairs%
HRV Analysis~7,70035%
Training Load~5,10023%
Recovery Science~3,90018%
Biomechanics~2,60012%
Nutrition & Performance~2,60012%

Source papers drawn from: International Journal of Sports Physiology and Performance, British Journal of Sports Medicine, Journal of Sports Sciences, Medicine & Science in Sports & Exercise, Sports Medicine.


Usage

llama.cpp (desktop/server)

bash
./llama-cli \
    -m model_q4km.gguf \
    --gpu-layers 99 \
    -n 300 \
    -p "<|begin_of_text|><|start_header_id|>user<|end_header_id|>What is VO2max and how is it measured?<|eot_id|><|start_header_id|>assistant<|end_header_id|>"

LM Studio

Load model_q4km.gguf directly from the Local Models tab.

llama.rn (React Native)

typescript
import { initLlama } from 'llama.rn';
import RNFS from 'react-native-fs';

const modelPath = `${RNFS.DocumentDirectoryPath}/model_q4km.gguf`;

// Download on first launch
await RNFS.downloadFile({
  fromUrl: 'https://huggingface.co/JuhaD2/sports-science-3b-gguf/resolve/main/model_q4km.gguf',
  toFile: modelPath,
}).promise;

// Load model
const context = await initLlama({
  model: modelPath,
  n_gpu_layers: 99,
});

// Run inference
const result = await context.completion({
  messages: [{ role: 'user', content: 'How does training load affect recovery?' }],
  n_predict: 300,
});

console.log(result.text);

transformers (Python)

The adapter weights are not included here. For Python use, load the base model and apply the original LoRA adapter separately.


Intended Use

  • —Sports science question answering
  • —Athlete monitoring and load management guidance
  • —HRV interpretation assistance
  • —Recovery protocol recommendations
  • —Educational tool for coaches and sports scientists

Out of Scope

  • —Medical diagnosis or treatment
  • —General-purpose question answering outside sports science
  • —Real-time physiological monitoring

Limitations

  • —Responses are based on training data from academic papers up to early 2025
  • —Should not replace consultation with qualified sports medicine professionals
  • —Performance on highly specialised sub-topics may vary

License

Built on Llama 3.2 — subject to the Llama 3.2 Community License.