Text Generation
Transformers
Safetensors
gpt_neox
Generated from Trainer
Eval Results (legacy)
text-generation-inference
Instructions to use bowphs/c4-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bowphs/c4-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bowphs/c4-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bowphs/c4-model") model = AutoModelForCausalLM.from_pretrained("bowphs/c4-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bowphs/c4-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bowphs/c4-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bowphs/c4-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bowphs/c4-model
- SGLang
How to use bowphs/c4-model 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 "bowphs/c4-model" \ --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": "bowphs/c4-model", "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 "bowphs/c4-model" \ --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": "bowphs/c4-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bowphs/c4-model with Docker Model Runner:
docker model run hf.co/bowphs/c4-model
Commit History
-
End of training
Verified signature989830e -
Model save
Verified signaturec9d7eb0 -
Training in progress, step 30000, checkpoint
Verified signatureabc731e -
Training in progress, step 30000
Verified signaturef9df44c -
Training in progress, step 29500, checkpoint
Verified signature10c4645 -
Training in progress, step 29500
Verified signaturef4066f3 -
Training in progress, step 29000, checkpoint
Verified signature498e437 -
Training in progress, step 29000
Verified signature47cea1a -
Training in progress, step 28500, checkpoint
Verified signaturefdef97c -
Training in progress, step 28500
Verified signaturef90b659 -
Training in progress, step 28000, checkpoint
Verified signatureed9a47f -
Training in progress, step 28000
Verified signatured018829 -
Training in progress, step 27500, checkpoint
Verified signaturedd89dac -
Training in progress, step 27500
Verified signature66d1562 -
Training in progress, step 27000, checkpoint
Verified signatureabcc221 -
Training in progress, step 27000
Verified signature7b9a6f7 -
Training in progress, step 26500, checkpoint
Verified signatureb125b93 -
Training in progress, step 26500
Verified signatured2c0b41 -
Training in progress, step 26000, checkpoint
Verified signaturea306cbe -
Training in progress, step 26000
Verified signaturee9daebd -
Training in progress, step 25500, checkpoint
Verified signature2034982 -
Training in progress, step 25500
Verified signature4ef0e46 -
Training in progress, step 25000, checkpoint
Verified signature33c4fec -
Training in progress, step 25000
Verified signaturef903046 -
Training in progress, step 24500, checkpoint
Verified signature5b633cf -
Training in progress, step 24500
Verified signaturef379cf7 -
Training in progress, step 24000, checkpoint
Verified signature034772a -
Training in progress, step 24000
Verified signaturecccd8fc -
Training in progress, step 23500, checkpoint
Verified signatured52c672 -
Training in progress, step 23500
Verified signature665cbca -
Training in progress, step 23000, checkpoint
Verified signature70a225e -
Training in progress, step 23000
Verified signature5eb953e -
Training in progress, step 22500, checkpoint
Verified signature1f0626d -
Training in progress, step 22500
Verified signatured2e887f -
Training in progress, step 22000, checkpoint
Verified signature8c3d36e -
Training in progress, step 22000
Verified signature3e3c248 -
Training in progress, step 21500, checkpoint
Verified signature87b85c6 -
Training in progress, step 21500
Verified signature03e3506 -
Training in progress, step 21000, checkpoint
Verified signaturea226bbb -
Training in progress, step 21000
Verified signature947e08c -
Training in progress, step 20500, checkpoint
Verified signature2470302 -
Training in progress, step 20500
Verified signature048d2d8 -
Training in progress, step 20000, checkpoint
Verified signature11d1af7 -
Training in progress, step 20000
Verified signatureea534ba -
Training in progress, step 19500, checkpoint
Verified signature61da022 -
Training in progress, step 19500
Verified signature774b907 -
Training in progress, step 19000, checkpoint
Verified signaturef7fb7a5 -
Training in progress, step 19000
Verified signature768e4c1 -
Training in progress, step 18500, checkpoint
Verified signature46e3ebe -
Training in progress, step 18500
Verified signatured258e44