Text Generation
Transformers
Safetensors
PyTorch
English
neollm
causal-lm
research
bf16
attention
normalization
conversational
custom_code
Instructions to use KitsuVp/NeoLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KitsuVp/NeoLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KitsuVp/NeoLLM", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("KitsuVp/NeoLLM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KitsuVp/NeoLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KitsuVp/NeoLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KitsuVp/NeoLLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KitsuVp/NeoLLM
- SGLang
How to use KitsuVp/NeoLLM 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 "KitsuVp/NeoLLM" \ --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": "KitsuVp/NeoLLM", "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 "KitsuVp/NeoLLM" \ --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": "KitsuVp/NeoLLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KitsuVp/NeoLLM with Docker Model Runner:
docker model run hf.co/KitsuVp/NeoLLM
File size: 902 Bytes
e54ea20 28f2b78 75487d5 1cd16f9 75487d5 1cd16f9 e54ea20 d6b5dd0 75487d5 e54ea20 28f2b78 9fc8333 e54ea20 1cd16f9 9fc8333 e54ea20 1cd16f9 75487d5 e54ea20 | 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 | {
"ademamix_enabled": false,
"bf16_stochastic_round_active": true,
"bf16_stochastic_round_elements": 83692024,
"bf16_stochastic_round_groups": 6,
"bf16_stochastic_round_tensors": 363,
"delta_eligible_linear_weights": 0,
"delta_enabled": false,
"delta_eta": 0.37,
"fp32_master_active": true,
"fp32_master_elements": 1459584,
"fp32_master_groups": 1,
"fp32_master_tensors": 6,
"fp32_passthrough_elements": 4976,
"mode": "mixed_bf16_sr_and_fp32_master",
"mxfp8_active": false,
"mxfp8_available": false,
"mxfp8_linear_layers": 0,
"mxfp8_recipe": null,
"native_precision_elements": 0,
"optimizer_variant": "AdamW",
"ordinary_linear_layers": 154,
"parameter_elements_by_dtype": {
"bfloat16": 85151608,
"float32": 4976
},
"parameter_storage_bytes": 170323120,
"runtime_precision_mode": "BF16_MIXED_BF16_SR_FP32_MASTER",
"stochastic_round_seed": 0
}
|