Text Generation
Transformers
Safetensors
English
bananamind2_pico
causal-lm
base-model
muon
xsa-refresh
custom-code
trust-remote-code
custom_code
Instructions to use Banaxi-Tech/pico-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Banaxi-Tech/pico-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Banaxi-Tech/pico-test", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Banaxi-Tech/pico-test", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Banaxi-Tech/pico-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Banaxi-Tech/pico-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Banaxi-Tech/pico-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Banaxi-Tech/pico-test
- SGLang
How to use Banaxi-Tech/pico-test 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 "Banaxi-Tech/pico-test" \ --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": "Banaxi-Tech/pico-test", "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 "Banaxi-Tech/pico-test" \ --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": "Banaxi-Tech/pico-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Banaxi-Tech/pico-test with Docker Model Runner:
docker model run hf.co/Banaxi-Tech/pico-test
| { | |
| "format": "bananamind2_pico_tokenizer_v1", | |
| "stage": "tokenizer_complete", | |
| "vocab_size": 384, | |
| "model_max_length": 8192, | |
| "target_gib": 1.0, | |
| "sources": [ | |
| { | |
| "name": "fineweb_hq", | |
| "dataset_id": "epfml/FineWeb-HQ", | |
| "config": null, | |
| "text_field": "text", | |
| "byte_share": 0.75, | |
| "revision": "e58199cdd52438d94405df1a4d8630cc5f13bf84", | |
| "target_bytes": 805306368, | |
| "consumed_bytes": 805307468 | |
| }, | |
| { | |
| "name": "cosmopedia_v2", | |
| "dataset_id": "HuggingFaceTB/smollm-corpus", | |
| "config": "cosmopedia-v2", | |
| "text_field": "text", | |
| "byte_share": 0.25, | |
| "revision": "3ba9d605774198c5868892d7a8deda78031a781f", | |
| "target_bytes": 268435456, | |
| "consumed_bytes": 268438475 | |
| } | |
| ] | |
| } | |