Instructions to use EdBergJr/Baha_2A_DeepSeek_R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use EdBergJr/Baha_2A_DeepSeek_R1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B") model = PeftModel.from_pretrained(base_model, "EdBergJr/Baha_2A_DeepSeek_R1") - Transformers
How to use EdBergJr/Baha_2A_DeepSeek_R1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EdBergJr/Baha_2A_DeepSeek_R1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("EdBergJr/Baha_2A_DeepSeek_R1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EdBergJr/Baha_2A_DeepSeek_R1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EdBergJr/Baha_2A_DeepSeek_R1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EdBergJr/Baha_2A_DeepSeek_R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EdBergJr/Baha_2A_DeepSeek_R1
- SGLang
How to use EdBergJr/Baha_2A_DeepSeek_R1 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 "EdBergJr/Baha_2A_DeepSeek_R1" \ --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": "EdBergJr/Baha_2A_DeepSeek_R1", "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 "EdBergJr/Baha_2A_DeepSeek_R1" \ --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": "EdBergJr/Baha_2A_DeepSeek_R1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EdBergJr/Baha_2A_DeepSeek_R1 with Docker Model Runner:
docker model run hf.co/EdBergJr/Baha_2A_DeepSeek_R1
Commit History
-
End of training
Verified signature09d0589 -
Training in progress, step 1190
Verified signatureee41b8f -
Training in progress, step 1180
Verified signatureaeb0625 -
Training in progress, step 1170
Verified signature38990b5 -
Training in progress, step 1160
Verified signature617d891 -
Training in progress, step 1150
Verified signature7ad6276 -
Training in progress, step 1140
Verified signature0b76120 -
Training in progress, step 1130
Verified signature5fc965a -
Training in progress, step 1120
Verified signaturef28f060 -
Training in progress, step 1110
Verified signature98dfd40 -
Training in progress, step 1100
Verified signature0253db3 -
Training in progress, step 1090
Verified signature1f893d6 -
Training in progress, step 1080
Verified signature969bb28 -
Training in progress, step 1070
Verified signaturef047c0e -
Training in progress, step 1060
Verified signature637ab53 -
Training in progress, step 1050
Verified signature9729bbb -
Training in progress, step 1040
Verified signature97e80e1 -
Training in progress, step 1030
Verified signature656c748 -
Training in progress, step 1020
Verified signaturebee3f15 -
Training in progress, step 1010
Verified signature5aaef57 -
Training in progress, step 1000
Verified signature5f5c070 -
Training in progress, step 990
Verified signature809e06f -
Training in progress, step 980
Verified signaturef38440d -
Training in progress, step 970
Verified signature28ac68e -
Training in progress, step 960
Verified signature520de58 -
Training in progress, step 950
Verified signaturef74d8bb -
Training in progress, step 940
Verified signatureca43b6d -
Training in progress, step 930
Verified signature0b8e66f -
Training in progress, step 920
Verified signature1249257 -
Training in progress, step 910
Verified signatureb205468 -
Training in progress, step 900
Verified signaturefb071e5 -
Training in progress, step 890
Verified signatureee85945 -
Training in progress, step 880
Verified signaturec624f4a -
Training in progress, step 870
Verified signaturedb2dcf0 -
Training in progress, step 860
Verified signaturef68faee -
Training in progress, step 850
Verified signature5951922 -
Training in progress, step 840
Verified signaturebf5cd69 -
Training in progress, step 830
Verified signature2d0c3f6 -
Training in progress, step 820
Verified signature95846a2 -
Training in progress, step 810
Verified signature0603dd0 -
Training in progress, step 800
Verified signaturea84ce0f -
Training in progress, step 790
Verified signature6304b65 -
Training in progress, step 780
Verified signaturedbd5c1e -
Training in progress, step 770
Verified signature0ffcbe5 -
Training in progress, step 760
Verified signaturefcf0f2c -
Training in progress, step 750
Verified signaturec0664f7 -
Training in progress, step 740
Verified signatured4adb65 -
Training in progress, step 730
Verified signaturedc25d7b -
Training in progress, step 720
Verified signatureba53526 -
Training in progress, step 710
Verified signature4691121