Text Generation
Transformers
Safetensors
English
mistral
conversational
Eval Results (legacy)
Eval Results
text-generation-inference
Instructions to use TIGER-Lab/MAmmoTH2-7B-Plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TIGER-Lab/MAmmoTH2-7B-Plus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TIGER-Lab/MAmmoTH2-7B-Plus") 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("TIGER-Lab/MAmmoTH2-7B-Plus") model = AutoModelForCausalLM.from_pretrained("TIGER-Lab/MAmmoTH2-7B-Plus", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TIGER-Lab/MAmmoTH2-7B-Plus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TIGER-Lab/MAmmoTH2-7B-Plus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TIGER-Lab/MAmmoTH2-7B-Plus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TIGER-Lab/MAmmoTH2-7B-Plus
- SGLang
How to use TIGER-Lab/MAmmoTH2-7B-Plus 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 "TIGER-Lab/MAmmoTH2-7B-Plus" \ --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": "TIGER-Lab/MAmmoTH2-7B-Plus", "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 "TIGER-Lab/MAmmoTH2-7B-Plus" \ --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": "TIGER-Lab/MAmmoTH2-7B-Plus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TIGER-Lab/MAmmoTH2-7B-Plus with Docker Model Runner:
docker model run hf.co/TIGER-Lab/MAmmoTH2-7B-Plus
Commit History
-
Update EvalEval source links to flat datastore
Verified signatureUpdates existing EvalEval Community Evals YAML entries to link to flat datastore aggregate objects pinned to an immutable EEE datastore commit, and normalizes source.name to EvalEval. No score, dataset, task, or date changes are intended. This updates existing open PR refs only. Contributor: evalevalb23020b
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval9909b0c
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval09f9bd9 -
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evalevalb1e19b5
-
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (11db0855c5f29fd669fde6744d9fef6a0951d024) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>7734269
-
Update README.md
Verified signature3ed578d -
Update README.md
Verified signatureb9d8026
-
Update README.md
Verified signatureb02dec0 -
Upload model.safetensors.index.json
Verified signaturedd37ba4 -
Upload 4 files
Verified signature6f7ac9a
-
Update README.md
Verified signature70d33e6
-
Upload webinstruct.png
Verified signature29814d9 -
Update README.md
Verified signaturee42a1ec
-
Delete training_loss.png
Verified signature04b58ec -
Delete trainer_log.jsonl
Verified signaturec087d8c -
Delete train_results.json
Verified signature65d2d2f -
Delete all_results.json
Verified signature995cabf -
Update config.json
Verified signature937928c
-
Add files using large-upload tool
Verified signature8d43cb4 -
Add files using large-upload tool
Verified signature91c8eb7 -
Add files using large-upload tool
Verified signaturef9a2a6f -
Delete checkpoint-2000
Verified signature233bb06 -
Add files using large-upload tool
Verified signature6c06667 -
Update README.md
Verified signaturece322ef -
Add files using large-upload tool
Verified signatureb779c17 -
Add files using large-upload tool
Verified signature1382f2b -
Add files using large-upload tool
Verified signaturea275af4 -
Add files using large-upload tool
Verified signature0445f42 -
initial commit
Verified signature4411ca0