Instructions to use minpeter/webtext-1k-pico with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/webtext-1k-pico with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/webtext-1k-pico")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/webtext-1k-pico") model = AutoModelForCausalLM.from_pretrained("minpeter/webtext-1k-pico", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/webtext-1k-pico with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/webtext-1k-pico" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/webtext-1k-pico", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/webtext-1k-pico
- SGLang
How to use minpeter/webtext-1k-pico 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 "minpeter/webtext-1k-pico" \ --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": "minpeter/webtext-1k-pico", "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 "minpeter/webtext-1k-pico" \ --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": "minpeter/webtext-1k-pico", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/webtext-1k-pico with Docker Model Runner:
docker model run hf.co/minpeter/webtext-1k-pico
Commit History
-
Training in progress, step 2700, checkpoint
Verified signatureb487689 -
Training in progress, step 2700
Verified signature94fcd0c -
Training in progress, step 2600, checkpoint
Verified signaturebf4a4aa -
Training in progress, step 2600
Verified signature3bb719c -
Training in progress, step 2500, checkpoint
Verified signature4f6b220 -
Training in progress, step 2500
Verified signature56708f1 -
Training in progress, step 2400, checkpoint
Verified signature234ae67 -
Training in progress, step 2400
Verified signatureada8954 -
Training in progress, step 2300, checkpoint
Verified signature60f5bdd -
Training in progress, step 2300
Verified signatured728900 -
Training in progress, step 2200, checkpoint
Verified signaturec76b8ae -
Training in progress, step 2200
Verified signature25e9c4a -
Training in progress, step 2100, checkpoint
Verified signature1591f66 -
Training in progress, step 2100
Verified signature1e2de8a -
Training in progress, step 2000, checkpoint
Verified signature753b40f -
Training in progress, step 2000
Verified signature943182c -
Training in progress, step 1900, checkpoint
Verified signaturec5db340 -
Training in progress, step 1900
Verified signature28e2e1b -
Training in progress, step 1800, checkpoint
Verified signaturead1e9d7 -
Training in progress, step 1800
Verified signature8ccb945 -
Training in progress, step 1700, checkpoint
Verified signature5a09473 -
Training in progress, step 1700
Verified signaturef4b1337 -
Training in progress, step 1600, checkpoint
Verified signature65531f2 -
Training in progress, step 1600
Verified signature800853f -
Training in progress, step 1500, checkpoint
Verified signaturee992d35 -
Training in progress, step 1500
Verified signatureafc0912 -
Training in progress, step 1400, checkpoint
Verified signature6e3c23d -
Training in progress, step 1400
Verified signature8c8566f -
Training in progress, step 1300, checkpoint
Verified signature0eeac3e -
Training in progress, step 1300
Verified signature0608336 -
Training in progress, step 1200, checkpoint
Verified signature5e1fce1 -
Training in progress, step 1200
Verified signature037a900 -
Training in progress, step 1100, checkpoint
Verified signatureeb4cc6c -
Training in progress, step 1100
Verified signature6246ee6 -
Training in progress, step 1000, checkpoint
Verified signature5f930a3 -
Training in progress, step 1000
Verified signature9b75814 -
Training in progress, step 900, checkpoint
Verified signature0c18a36 -
Training in progress, step 900
Verified signaturea060abe -
Training in progress, step 800, checkpoint
Verified signature4552f0e -
Training in progress, step 800
Verified signature1066557 -
Training in progress, step 700, checkpoint
Verified signature73b9428 -
Training in progress, step 700
Verified signature36e0191 -
Training in progress, step 600, checkpoint
Verified signature7614de2 -
Training in progress, step 600
Verified signature86419f1 -
Training in progress, step 500, checkpoint
Verified signature5d2a6b7 -
Training in progress, step 500
Verified signatureab59fc7 -
Training in progress, step 400, checkpoint
Verified signature8eabf80 -
Training in progress, step 400
Verified signature4b45ae3 -
Training in progress, step 300, checkpoint
Verified signaturee2d7d23 -
Training in progress, step 300
Verified signature183d4db