Text Generation
Transformers
Safetensors
llama
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1") 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("DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1") model = AutoModelForCausalLM.from_pretrained("DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1", 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 DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1
- SGLang
How to use DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1 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 "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1" \ --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": "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1", "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 "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1" \ --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": "DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1 with Docker Model Runner:
docker model run hf.co/DebateLabKIT/Phi-4-Argunaut-1-SFT-dev1
Training in progress, step 5150
Browse files
model-00001-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4933658528
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e87f1506161dfe6378f2badb07daa737fc4715ff580b6abfeed3e9da24db071
|
| 3 |
size 4933658528
|
model-00002-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954693112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0154cfaa933217bc053bf39b2a1de2e411fede380833f63f68333f3ddd3bea4f
|
| 3 |
size 4954693112
|
model-00003-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4902243992
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b56d9ed891c17d349fb1bf1f3165acc5f2d30c018a00c55558fb014a1099543e
|
| 3 |
size 4902243992
|
model-00004-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954672440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf79d795b9f4972c0d8ab479ed6a9eadab20b33fad48be55edb6739177b4a543
|
| 3 |
size 4954672440
|
model-00005-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954672432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0188994910e43bb5e3b2490ade9aa92f0f4b92453555d83bcc7d3f312b8b5380
|
| 3 |
size 4954672432
|
model-00006-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4619116224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b390b122d7e7f0772aec3e651cbd7dff6b4b85de853d669e5b3fcbd5f4f941b
|
| 3 |
size 4619116224
|