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
Commit History
-
Update README.md
Verified signature57ee3d8
-
Upload adaptive-math-demo.gif
Verified signatureca5bdba -
Delete Adaptive Math.mp4
Verified signature82af610 -
Delete adaptive-math-demo.gif
Verified signature13efcea -
Update README.md
Verified signatureb908914 -
Update README.md
Verified signature6fcf895
-
Update README.md
Verified signatureb4064cf -
Update README.md
Verified signature8becd5e -
Upload adaptive-math-demo-2.gif
Verified signature21ce0c7 -
Update README.md
Verified signature9048dc7 -
Update README.md
Verified signaturec441998 -
Upload adaptive-math-demo.gif
Verified signature3a6c306 -
Update README.md
Verified signature298fbca -
Update README.md
Verified signaturef6bfd42 -
Upload output.gif
Verified signatured82b047 -
Update README.md
Verified signatureb7b3005 -
Update README.md
Verified signature5392fef -
Update README.md
Verified signature565b3dd -
Update README.md
Verified signatureacc8047 -
Update README.md
Verified signature9d49c87 -
Update README.md
Verified signatureb2eec1c -
Update README.md
Verified signaturef8a3ef3 -
Update README.md
Verified signature57fd49e -
Upload adaptive-math-demo.gif
Verified signature54ff448 -
Update README.md
Verified signature9593102 -
Update README.md
Verified signature082eb05 -
Update README.md
Verified signaturec8120b1 -
Update README.md
Verified signature30e935b -
Update README.md
Verified signaturehttps://cdn-uploads.huggingface.co/production/uploads/680b3b2640748ca0081daae4/-aHNulF2KnHpaJLDmOk_D.mp419d1bbe -
Update README.md
Verified signature5f25fbc -
Update README.md
Verified signatureab186d2 -
Upload Adaptive Math.mp4
Verified signature075b062 -
Update README.md
Verified signature138a9fb -
Upload 9 files
Verified signature5d3bb62 -
initial commit
Verified signature9dfcdee