Text Generation
Transformers
PyTorch
Safetensors
English
llama
text-generation-inference
unsloth
trl
sft
conversational
Instructions to use goaiguru/DeepSeek-R1-Medical-COT-RV with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goaiguru/DeepSeek-R1-Medical-COT-RV with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="goaiguru/DeepSeek-R1-Medical-COT-RV") 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("goaiguru/DeepSeek-R1-Medical-COT-RV") model = AutoModelForCausalLM.from_pretrained("goaiguru/DeepSeek-R1-Medical-COT-RV", 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 goaiguru/DeepSeek-R1-Medical-COT-RV with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "goaiguru/DeepSeek-R1-Medical-COT-RV" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "goaiguru/DeepSeek-R1-Medical-COT-RV", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/goaiguru/DeepSeek-R1-Medical-COT-RV
- SGLang
How to use goaiguru/DeepSeek-R1-Medical-COT-RV 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 "goaiguru/DeepSeek-R1-Medical-COT-RV" \ --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": "goaiguru/DeepSeek-R1-Medical-COT-RV", "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 "goaiguru/DeepSeek-R1-Medical-COT-RV" \ --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": "goaiguru/DeepSeek-R1-Medical-COT-RV", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use goaiguru/DeepSeek-R1-Medical-COT-RV with Docker Model Runner:
docker model run hf.co/goaiguru/DeepSeek-R1-Medical-COT-RV
Trained with Unsloth
Browse files
config.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
| 33 |
"torch_dtype": "float16",
|
| 34 |
"transformers_version": "4.47.1",
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
-
"unsloth_version": "2025.1.
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 128256
|
| 39 |
}
|
|
|
|
| 33 |
"torch_dtype": "float16",
|
| 34 |
"transformers_version": "4.47.1",
|
| 35 |
"unsloth_fixed": true,
|
| 36 |
+
"unsloth_version": "2025.1.8",
|
| 37 |
"use_cache": true,
|
| 38 |
"vocab_size": 128256
|
| 39 |
}
|
pytorch_model-00001-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4976718466
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:707548c6eb4bd2f6eed1526919ca8938cd0bd48b3b0af8159f408d811d513602
|
| 3 |
size 4976718466
|
pytorch_model-00002-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999827142
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f07fe0543a592a29edd746fa725228e023a88f6d8e5b7ee128819fab8e8f6bb2
|
| 3 |
size 4999827142
|
pytorch_model-00003-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915939082
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:125cf4ea0c0e91c3258a4cd07f6625d02ec8f92d0783d0615772fe07387d2f39
|
| 3 |
size 4915939082
|
pytorch_model-00004-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1168140873
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b181d293600e56bd9665dfec47882f4b37e943e12c514284556eff9fb3c26f5c
|
| 3 |
size 1168140873
|