Text Generation
Transformers
PyTorch
Safetensors
English
llama
Eval Results (legacy)
text-generation-inference
Instructions to use acrastt/Marx-3B-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acrastt/Marx-3B-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="acrastt/Marx-3B-V2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("acrastt/Marx-3B-V2") model = AutoModelForCausalLM.from_pretrained("acrastt/Marx-3B-V2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use acrastt/Marx-3B-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "acrastt/Marx-3B-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acrastt/Marx-3B-V2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/acrastt/Marx-3B-V2
- SGLang
How to use acrastt/Marx-3B-V2 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 "acrastt/Marx-3B-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acrastt/Marx-3B-V2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "acrastt/Marx-3B-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acrastt/Marx-3B-V2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use acrastt/Marx-3B-V2 with Docker Model Runner:
docker model run hf.co/acrastt/Marx-3B-V2
Commit History
-
Adding Evaluation Results (#5)
Verified signature- Adding Evaluation Results (6abfd66bc7d3c2fc31bdd0eae7c04d69061dd50a) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>9766c13
-
Update README.md
2b01c5c
-
Adding Evaluation Results (#3)
- Adding Evaluation Results (d91828241fb9f7a401e76300839084592b901eef)8fef4f8
-
Upload pytorch_model.bin with huggingface_hub
48909e2 -
Upload pytorch_model.bin with huggingface_hub
3cdf5c1
-
Update README.md
d9cd4f2 -
Update README.md
19eb303 -
Update README.md
cde85c3
-
Update README.md
29723c2 -
Update README.md
603b14b
-
Update README.md
b94607e -
Update README.md
4003a01 -
Update README.md
3509ee0
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (caccac949b9faa3421ab1c4ec24453790bb2c510) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5fba568 -
Update README.md
0613d54 -
Upload pytorch_model.bin with huggingface_hub
36089de -
Upload 5 files
80b127e -
initial commit
67ac8c9