Text Generation
Transformers
Safetensors
English
mixtral
mathematics
reasoning
algebra
arithmetic
geometry
calculus
statistics
number-theory
ai
adaption-labs
autoscientist
lora
education
stem
conversational
text-generation-inference
Run this model with HF Jobs
Run Charley890/AdaptiveMath on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Charley890/AdaptiveMath. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Charley890/AdaptiveMath on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Charley890/AdaptiveMath. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Charley890/AdaptiveMath. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Charley890/AdaptiveMath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Charley890/AdaptiveMath with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Charley890/AdaptiveMath") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Charley890/AdaptiveMath") model = AutoModelForCausalLM.from_pretrained("Charley890/AdaptiveMath", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Charley890/AdaptiveMath with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Charley890/AdaptiveMath" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Charley890/AdaptiveMath
- SGLang
How to use Charley890/AdaptiveMath with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Charley890/AdaptiveMath" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Charley890/AdaptiveMath" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Charley890/AdaptiveMath with Docker Model Runner:
docker model run hf.co/Charley890/AdaptiveMath
Update README.md
Browse files144 unmodified lines14514614714814915015119 unmodified lines171172173174144 unmodified lines---# 🧠 Mathematical KnowledgeThis model is optimized to solve a broad range of mathematical problems through logical reasoning instead of memorization.19 unmodified lines| Numerical Analysis | Approximation Methods || Differential Equations | Ordinary and Partial Differential Equations |144 unmodified lines14514614714814915015119 unmodified lines171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203144 unmodified lines---# Mathematical KnowledgeThis model is optimized to solve a broad range of mathematical problems through logical reasoning instead of memorization.19 unmodified lines| Numerical Analysis | Approximation Methods || Differential Equations | Ordinary and Partial Differential Equations |## Fundamental Mathematical Formulae| Formula | Equation ||---------|----------|| Quadratic Formula | $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ || Pythagorean Theorem | $a^2+b^2=c^2$ || Distance Formula | $d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ || Midpoint Formula | $M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)$ || Slope Formula | $m=\frac{y_2-y_1}{x_2-x_1}$ || Point-Slope Form | $y-y_1=m(x-x_1)$ || Equation of a Line | $y=mx+b$ || Area of Circle | $A=\pi r^2$ || Circumference | $C=2\pi r$ || Volume of Sphere | $V=\frac43\pi r^3$ || Surface Area of Sphere | $A=4\pi r^2$ || Volume of Cylinder | $V=\pi r^2h$ || Volume of Cone | $V=\frac13\pi r^2h$ || Euler's Formula | $e^{ix}=\cos x+i\sin x$ || Euler's Identity | $e^{i\pi}+1=0$ || Bayes' Theorem | $P(A\mid B)=\frac{P(B\mid A)P(A)}{P(B)}$ || Arithmetic Mean | $\bar{x}=\frac{x_1+\cdots+x_n}{n}$ || Geometric Mean | $GM=\sqrt[n]{x_1x_2\cdots x_n}$ || Harmonic Mean | $HM=\frac{n}{\sum\frac1{x_i}}$ || Standard Deviation | $\sigma=\sqrt{\frac{\sum(x-\mu)^2}{N}}$ || Variance | $\sigma^2=\frac{\sum(x-\mu)^2}{N}$ || Derivative | $f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}$ || Integration by Parts | $\int u\,dv=uv-\int v\,du$ || Chain Rule | $\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}$ || Product Rule | $(uv)'=u'v+uv'$ || Quotient Rule | $\left(\frac uv\right)'=\frac{u'v-uv'}{v^2}$ |
README.md+31-2