Text Generation
Transformers
PyTorch
llama
unsloth
trl
grpo
conversational
text-generation-inference
Instructions to use IronWolfAI/PhiCogniPlus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IronWolfAI/PhiCogniPlus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IronWolfAI/PhiCogniPlus") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IronWolfAI/PhiCogniPlus") model = AutoModelForCausalLM.from_pretrained("IronWolfAI/PhiCogniPlus") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use IronWolfAI/PhiCogniPlus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IronWolfAI/PhiCogniPlus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IronWolfAI/PhiCogniPlus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IronWolfAI/PhiCogniPlus
- SGLang
How to use IronWolfAI/PhiCogniPlus 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 "IronWolfAI/PhiCogniPlus" \ --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": "IronWolfAI/PhiCogniPlus", "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 "IronWolfAI/PhiCogniPlus" \ --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": "IronWolfAI/PhiCogniPlus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use IronWolfAI/PhiCogniPlus with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for IronWolfAI/PhiCogniPlus to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for IronWolfAI/PhiCogniPlus to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for IronWolfAI/PhiCogniPlus to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="IronWolfAI/PhiCogniPlus", max_seq_length=2048, ) - Docker Model Runner
How to use IronWolfAI/PhiCogniPlus with Docker Model Runner:
docker model run hf.co/IronWolfAI/PhiCogniPlus
Trained with Unsloth
Browse files
config.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"torch_dtype": "float16",
|
| 28 |
"transformers_version": "4.51.1",
|
| 29 |
"unsloth_fixed": true,
|
| 30 |
-
"unsloth_version": "2025.
|
| 31 |
"use_cache": true,
|
| 32 |
"vocab_size": 100352
|
| 33 |
}
|
|
|
|
| 27 |
"torch_dtype": "float16",
|
| 28 |
"transformers_version": "4.51.1",
|
| 29 |
"unsloth_fixed": true,
|
| 30 |
+
"unsloth_version": "2025.4.1",
|
| 31 |
"use_cache": true,
|
| 32 |
"vocab_size": 100352
|
| 33 |
}
|
pytorch_model-00001-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4936292206
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6443f096f8afa64d5f82f191e52d2f9abc4fa418b5c91200ccb687df4e42a776
|
| 3 |
size 4936292206
|
pytorch_model-00002-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954708330
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:202513de6c10fa5715e16975175f316eac035965aa6cb7e516b9cb4c974c99e6
|
| 3 |
size 4954708330
|
pytorch_model-00003-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4902259524
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a2262aabb8e127676a1ff529df01d80b778780ad1a496a88ad1f2783483248c
|
| 3 |
size 4902259524
|
pytorch_model-00004-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954687246
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2df8a725ee013509b5de93412144982920944d49aabe2e54b0a233c12ac47134
|
| 3 |
size 4954687246
|
pytorch_model-00005-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4954687226
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3abedcde9bf2d44d579143893bca4e4ca9e8d70f9bd2b1435e5dc1c8f9bbd9f
|
| 3 |
size 4954687226
|
pytorch_model-00006-of-00006.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4621749274
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c7ec0a6c9bd87364d4e62ca864fbcc53cdaee85ce1e6a0e51b44fb4b4a36954
|
| 3 |
size 4621749274
|