Text Generation
Transformers
Safetensors
English
mistral
math
alpaca
synthetic data
instruct
axolotl
finetune
gpt4
conversational
text-generation-inference
Instructions to use Weyaxi/EulerMath-Mistral-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Weyaxi/EulerMath-Mistral-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Weyaxi/EulerMath-Mistral-7B") 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("Weyaxi/EulerMath-Mistral-7B") model = AutoModelForCausalLM.from_pretrained("Weyaxi/EulerMath-Mistral-7B", 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 Weyaxi/EulerMath-Mistral-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Weyaxi/EulerMath-Mistral-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Weyaxi/EulerMath-Mistral-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Weyaxi/EulerMath-Mistral-7B
- SGLang
How to use Weyaxi/EulerMath-Mistral-7B 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 "Weyaxi/EulerMath-Mistral-7B" \ --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": "Weyaxi/EulerMath-Mistral-7B", "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 "Weyaxi/EulerMath-Mistral-7B" \ --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": "Weyaxi/EulerMath-Mistral-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Weyaxi/EulerMath-Mistral-7B with Docker Model Runner:
docker model run hf.co/Weyaxi/EulerMath-Mistral-7B
Commit History
-
Upload folder using huggingface_hub
Verified signature46ccb49
-
add quants :)
Verified signature5ef2bb4
-
oh sorry
Verified signature3185348 -
Update README.md
Verified signature9c99900 -
minor update
Verified signature200b363 -
update model card
Verified signature848c8d1 -
End of training
Verified signature308e24c -
Training in progress, step 544
Verified signature30a6ff8
-
pre release
Verified signature913e0bd -
normal looking format 1 epoch
Verified signature5c5772c -
Training in progress, step 272
Verified signature99cd491
-
add things I already know pre model card 2
Verified signaturee4bec07
-
add logo to the model
Verified signaturec2b97ce -
pre model card
Verified signature1aae4ac -
pre pre readme only metadata
Verified signaturebbdb1a2 -
initial commit
Verified signatureaefc7d3