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
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 files
README.md
CHANGED
|
@@ -201,3 +201,28 @@ It performs best when explaining every intermediate step before arriving at the
|
|
| 201 |
| Chain Rule | $\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}$ |
|
| 202 |
| Product Rule | $(uv)'=u'v+uv'$ |
|
| 203 |
| Quotient Rule | $\left(\frac uv\right)'=\frac{u'v-uv'}{v^2}$ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
| Chain Rule | $\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}$ |
|
| 202 |
| Product Rule | $(uv)'=u'v+uv'$ |
|
| 203 |
| Quotient Rule | $\left(\frac uv\right)'=\frac{u'v-uv'}{v^2}$ |
|
| 204 |
+
|
| 205 |
+
## Mathematical Laws
|
| 206 |
+
|
| 207 |
+
| Law | Formula |
|
| 208 |
+
|------|---------|
|
| 209 |
+
| Commutative Law | $a+b=b+a,\;ab=ba$ |
|
| 210 |
+
| Associative Law | $(a+b)+c=a+(b+c)$ |
|
| 211 |
+
| Distributive Law | $a(b+c)=ab+ac$ |
|
| 212 |
+
| Identity Law | $a+0=a,\;a\times1=a$ |
|
| 213 |
+
| Inverse Law | $a+(-a)=0,\;a\cdot\frac1a=1$ |
|
| 214 |
+
| Exponent Product Law | $a^ma^n=a^{m+n}$ |
|
| 215 |
+
| Exponent Quotient Law | $\frac{a^m}{a^n}=a^{m-n}$ |
|
| 216 |
+
| Power Rule | $(a^m)^n=a^{mn}$ |
|
| 217 |
+
| Binomial Theorem | $(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k$ |
|
| 218 |
+
| Pascal's Identity | $\binom nk=\binom{n-1}{k-1}+\binom{n-1}{k}$ |
|
| 219 |
+
| Fermat's Little Theorem | $a^{p-1}\equiv1\pmod p$ |
|
| 220 |
+
| Wilson's Theorem | $(p-1)!\equiv-1\pmod p$ |
|
| 221 |
+
| Law of Sines | $\frac a{\sin A}=\frac b{\sin B}=\frac c{\sin C}$ |
|
| 222 |
+
| Law of Cosines | $c^2=a^2+b^2-2ab\cos C$ |
|
| 223 |
+
| Heron's Formula | $A=\sqrt{s(s-a)(s-b)(s-c)}$ |
|
| 224 |
+
| De Moivre's Theorem | $(\cos x+i\sin x)^n=\cos(nx)+i\sin(nx)$ |
|
| 225 |
+
| Green's Theorem | $\oint_C(P\,dx+Q\,dy)=\iint_D\left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)dA$ |
|
| 226 |
+
| Stokes' Theorem | $\oint_C\mathbf{F}\cdot d\mathbf r=\iint_S(\nabla\times\mathbf F)\cdot d\mathbf S$ |
|
| 227 |
+
| Divergence Theorem | $\iiint_V(\nabla\cdot\mathbf F)dV=\iint_S\mathbf F\cdot d\mathbf S$ |
|
| 228 |
+
| Matrix Determinant Law | $\det(AB)=\det(A)\det(B)$ |
|