Instructions to use wefamm/aiAI_coder_V1.4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use wefamm/aiAI_coder_V1.4B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/root/autodl-tmp/Qwen3.5-4B-Thinking") model = PeftModel.from_pretrained(base_model, "wefamm/aiAI_coder_V1.4B") - Transformers
How to use wefamm/aiAI_coder_V1.4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wefamm/aiAI_coder_V1.4B") 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("wefamm/aiAI_coder_V1.4B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wefamm/aiAI_coder_V1.4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wefamm/aiAI_coder_V1.4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wefamm/aiAI_coder_V1.4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wefamm/aiAI_coder_V1.4B
- SGLang
How to use wefamm/aiAI_coder_V1.4B 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 "wefamm/aiAI_coder_V1.4B" \ --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": "wefamm/aiAI_coder_V1.4B", "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 "wefamm/aiAI_coder_V1.4B" \ --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": "wefamm/aiAI_coder_V1.4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wefamm/aiAI_coder_V1.4B with Docker Model Runner:
docker model run hf.co/wefamm/aiAI_coder_V1.4B
Download training_args.bin from wefamm/aiAI_coder_V1.4B: direct link, hf CLI and curl.
- Browser
- Download file 5.65 kB
-
https://huggingface.co/wefamm/aiAI_coder_V1.4B/resolve/main/training_args.bin
- Command line
-
hf download hf://wefamm/aiAI_coder_V1.4B/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/wefamm/aiAI_coder_V1.4B/resolve/main/training_args.bin
5.65 kB
- Xet hash:
- 278b5e6078d9a072992a542495398e96d7e4b5e8633215a3b15ece805e56f299
- Size of remote file:
- 5.65 kB
- SHA256:
- 515003ae37d3000cca3543d6bedfcd26326cebe34afc23a1ad459dfb1f5a9ee1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.