Text Generation
Transformers
Safetensors
English
llama
mergekit
Merge
shining-valiant
shining-valiant-2
cobalt
plum
valiant
valiant-labs
llama-3.1
llama-3.1-instruct
llama-3.1-instruct-8b
llama-3
llama-3-instruct
llama-3-instruct-8b
8b
math
math-instruct
science
physics
biology
chemistry
compsci
computer-science
engineering
technical
conversational
chat
instruct
Eval Results (legacy)
text-generation-inference
Instructions to use sequelbox/Llama3.1-8B-PlumMath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sequelbox/Llama3.1-8B-PlumMath with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sequelbox/Llama3.1-8B-PlumMath") 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("sequelbox/Llama3.1-8B-PlumMath") model = AutoModelForCausalLM.from_pretrained("sequelbox/Llama3.1-8B-PlumMath", 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 sequelbox/Llama3.1-8B-PlumMath with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sequelbox/Llama3.1-8B-PlumMath" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sequelbox/Llama3.1-8B-PlumMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sequelbox/Llama3.1-8B-PlumMath
- SGLang
How to use sequelbox/Llama3.1-8B-PlumMath 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 "sequelbox/Llama3.1-8B-PlumMath" \ --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": "sequelbox/Llama3.1-8B-PlumMath", "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 "sequelbox/Llama3.1-8B-PlumMath" \ --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": "sequelbox/Llama3.1-8B-PlumMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sequelbox/Llama3.1-8B-PlumMath with Docker Model Runner:
docker model run hf.co/sequelbox/Llama3.1-8B-PlumMath
Commit History
-
Adding Evaluation Results (#2)
Verified signature- Adding Evaluation Results (8b3c6ead3286575b2cd03068071e06112df7a01f) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>bfaa2e7
-
Upload folder using huggingface_hub (#1)
Verified signature- 66ea75cdded40b8545c9fa5e8886c9ad05ef3ba475462731634f6c5334cc80a3 (12a321dfba4a34cf3bb13c205d8b3e56e546ba48) - aa586dc9a58c66fa68155d5117fb1499470c489b92773e354475854aef1ecda1 (cb721974ee574d9348280628c37992167445c8cf) - d43b20b3482429e5e4c7aa6130f0bfda2c91c4f19b5c2a65c816cce0588a6eac (8fbfa52587a0a0bb1a25d037f0c795deefcd0e63) - ddfb51ccc772f847fbc19d649c0375dc7f8bc9dc2a1a338d52da1d80a16baa75 (c0b0146ba9d1c2df3f8bb437d4ae163560c20893) - Delete .ipynb_checkpoints (ca030416153f5f44002677d49b82a1274195febe) - card (d465d4b050f50a115740f5caaca9f63c72f94da1) - card (18a6fbb196b2e77975f3b65cbd8ebc76c34e2cd9) - eval (f3924b2684f31dbe5ca03985373e3d1a7b6c446c)b857c30 -
initial commit
Verified signature5bc8556