Instructions to use anujsahani01/NeuralCodeBot_pythia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anujsahani01/NeuralCodeBot_pythia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anujsahani01/NeuralCodeBot_pythia")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anujsahani01/NeuralCodeBot_pythia") model = AutoModelForCausalLM.from_pretrained("anujsahani01/NeuralCodeBot_pythia", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anujsahani01/NeuralCodeBot_pythia with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anujsahani01/NeuralCodeBot_pythia" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anujsahani01/NeuralCodeBot_pythia", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anujsahani01/NeuralCodeBot_pythia
- SGLang
How to use anujsahani01/NeuralCodeBot_pythia 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 "anujsahani01/NeuralCodeBot_pythia" \ --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": "anujsahani01/NeuralCodeBot_pythia", "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 "anujsahani01/NeuralCodeBot_pythia" \ --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": "anujsahani01/NeuralCodeBot_pythia", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anujsahani01/NeuralCodeBot_pythia with Docker Model Runner:
docker model run hf.co/anujsahani01/NeuralCodeBot_pythia
Commit History
-
Training in progress, step 6500
315f81d -
Training in progress, step 6000
2084a6a -
Training in progress, step 5500
ebebd45 -
Training in progress, step 5000
3ea08bf -
Training in progress, step 4500
0fe31c6 -
Training in progress, step 4000
517e21a -
Training in progress, step 3500
e5a2c6a -
Training in progress, step 3000
f9e6b03 -
Training in progress, step 2500
7a0e008 -
Training in progress, step 2000
4083e43 -
Training in progress, step 1500
070b6ff -
Training in progress, step 1000
c5d2cee -
Training in progress, step 500
17b16f4 -
Training in progress, step 2000
b43d430 -
Training in progress, step 1500
54119a9 -
Training in progress, step 1000
1476123 -
Training in progress, step 500
a40dac1 -
Training in progress, step 7000
026aa04 -
Training in progress, step 6500
8851099 -
Training in progress, step 6000
02cad5c -
Training in progress, step 5500
01433aa -
Training in progress, step 5000
1c1b02a -
Training in progress, step 4500
3c96f40 -
Training in progress, step 4000
e6c646e -
Training in progress, step 3500
188dac2 -
Training in progress, step 3000
ac092b8 -
Training in progress, step 2500
95ad0c9 -
Training in progress, step 2000
7cf4b12 -
Training in progress, step 1500
7898818 -
Training in progress, step 1000
1203750 -
Training in progress, step 500
80cd855