Text Generation
Transformers
Safetensors
English
llama
code
reasoning
function-calling
from-scratch
text-generation-inference
Instructions to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K") model = AutoModelForCausalLM.from_pretrained("WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K
- SGLang
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K 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 "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K with Docker Model Runner:
docker model run hf.co/WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K
File size: 881 Bytes
d400bc0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {
"training": {
"train_runtime": 11303.0588,
"train_samples_per_second": 0.366,
"train_steps_per_second": 0.012,
"total_flos": 2.2778480156737536e+16,
"train_loss": 3.638028181516207,
"epoch": 2.0
},
"evaluation": {
"eval_loss": 3.2350947856903076
},
"test": {
"test_loss": 3.317430257797241
},
"base_model": "WithinUsAI/WIUAI.Mini.Coder.Traces",
"output_model": "WithinUsAI/WIUAI.Mini.Coder.DeepReasoning.4K",
"architecture": "llama",
"original_context": 1024,
"target_context": 4096,
"rope_parameters": {
"rope_type": "linear",
"factor": 4.0,
"rope_theta": 10000.0
},
"epochs": 2,
"learning_rate": 1e-05,
"train_examples": 2070,
"evaluation_examples": 112,
"test_examples": 97,
"total_parameters": 302027520,
"trainable_parameters": 302027520,
"training_method": "Full-parameter fine-tuning"
} |