Text Generation
Transformers
Safetensors
English
Korean
Motif
text-generation-inference
conversational
custom_code
Instructions to use Motif-Technologies/Motif-2-12.7B-Reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motif-Technologies/Motif-2-12.7B-Reasoning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Motif-Technologies/Motif-2-12.7B-Reasoning", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Motif-Technologies/Motif-2-12.7B-Reasoning", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Motif-Technologies/Motif-2-12.7B-Reasoning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Motif-Technologies/Motif-2-12.7B-Reasoning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Motif-Technologies/Motif-2-12.7B-Reasoning", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Motif-Technologies/Motif-2-12.7B-Reasoning
- SGLang
How to use Motif-Technologies/Motif-2-12.7B-Reasoning 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 "Motif-Technologies/Motif-2-12.7B-Reasoning" \ --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": "Motif-Technologies/Motif-2-12.7B-Reasoning", "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 "Motif-Technologies/Motif-2-12.7B-Reasoning" \ --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": "Motif-Technologies/Motif-2-12.7B-Reasoning", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Motif-Technologies/Motif-2-12.7B-Reasoning with Docker Model Runner:
docker model run hf.co/Motif-Technologies/Motif-2-12.7B-Reasoning
Commit History
-
Update README.md
Verified signaturec2ca405 -
change n-gram and ratio check order
Verified signatured63f78d -
Update logit_processors/logit_.py
Verified signature4ea8a04 -
update min value to logit dtype minval
Verified signature5b8a431 -
Update logit_processors/logit_.py
Verified signaturef19aee3 -
Update README.md
Verified signature73e65dd -
remove unused dependency in logitproc
Verified signaturebd52fd3 -
Update README.md
Verified signature3bcafec -
Update README.md
Verified signature47d2832 -
Update README.md
Verified signature5197888 -
add logitprocessor
Verified signaturebc61b50
-
Update README.md
Verified signature390323a -
Update README.md
Verified signature24fc7ff
-
Update chat_template.jinja (#3)
Verified signature- Update chat_template.jinja (d80b65ee8a3cee0e394ebcf2d2f98cbdd9e1abb5)fc0b3f2
-
update model weight to single safetensor (#2)
Verified signature- Update: replace sharded safetensor to single safetensor file (b452f0b953f467ccd3013cd6e6ffe8bc4bc76ddd) - Update: add default system prompt (373193f259b58b94069fc8f6091acb2cb4976971) Co-authored-by: dongseokkim <dongseokmotif@users.noreply.huggingface.co>217efdb -
Update README.md
Verified signaturecea42e0
-
Update README.md
Verified signature3765b6f -
add_trained_weights (#1)
Verified signature- Add: add trained weights (3ae4b147e4744f58152d8add2bfc0b7e47b9a1bd) - Update: remove _attn_implementation from config.json (8e6a2dc597e87d2c20645b18562609eb459aec76) - Update: update comment of Grouped Differential Attention (00790c992fbe4ec20a65c5cc4c45d4f88dff5b48) - Update generation_config.json (5b6a02dd8f997723ba27ba5541b2ec879e157d3e) - Update generation_config.json (223d224c1e2ba1fbebf3b57e4bf32b44ecd186c3) - Update generation_config.json (c213563fdd483432218030f47e8aaf849e81348b) Co-authored-by: leejunhyeok <leejunhyeok@users.noreply.huggingface.co> Co-authored-by: dongseokkim <dongseokmotif@users.noreply.huggingface.co> Co-authored-by: Jeongdoolee <jeongdoolee@users.noreply.huggingface.co>a259d49
-
Update README.md
Verified signaturee9f496e
-
initial commit
Verified signatureba46857