Text Generation
Transformers
Safetensors
opt
trl
sft
Generated from Trainer
text-generation-inference
Run this model with HF Jobs
Run kazuma313/code-instruct-facebook-opt-350m on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/kazuma313/code-instruct-facebook-opt-350m. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kazuma313/code-instruct-facebook-opt-350m on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/kazuma313/code-instruct-facebook-opt-350m. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/kazuma313/code-instruct-facebook-opt-350m. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use kazuma313/code-instruct-facebook-opt-350m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kazuma313/code-instruct-facebook-opt-350m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kazuma313/code-instruct-facebook-opt-350m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kazuma313/code-instruct-facebook-opt-350m") model = AutoModelForCausalLM.from_pretrained("kazuma313/code-instruct-facebook-opt-350m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kazuma313/code-instruct-facebook-opt-350m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kazuma313/code-instruct-facebook-opt-350m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kazuma313/code-instruct-facebook-opt-350m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kazuma313/code-instruct-facebook-opt-350m
- SGLang
How to use kazuma313/code-instruct-facebook-opt-350m 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 "kazuma313/code-instruct-facebook-opt-350m" \ --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": "kazuma313/code-instruct-facebook-opt-350m", "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 "kazuma313/code-instruct-facebook-opt-350m" \ --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": "kazuma313/code-instruct-facebook-opt-350m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kazuma313/code-instruct-facebook-opt-350m with Docker Model Runner:
docker model run hf.co/kazuma313/code-instruct-facebook-opt-350m
Commit History
-
Update README.md
Verified signaturef30de38 -
Update README.md
Verified signature196db23
-
Update README.md
Verified signatured04a80a -
Model save
Verified signatureefdd1cc -
Training in progress, step 850
Verified signatureecac730 -
Training in progress, step 750
Verified signature8a2a3a1 -
Training in progress, step 625
Verified signatureaac4edd -
Training in progress, step 500
Verified signature2102499 -
Training in progress, step 375
Verified signature5930083 -
Training in progress, step 275
Verified signature66aa46f -
Training in progress, step 175
Verified signature641d043 -
Training in progress, step 25
Verified signature665460b -
Training in progress, step 125
Verified signatureff50eff -
Training in progress, step 25
Verified signaturef05de75
-
Training in progress, step 875
Verified signature06a82ca -
Training in progress, step 850
Verified signature9727a3a -
Training in progress, step 825
Verified signature3990656 -
Training in progress, step 800
Verified signature68c22a2 -
Training in progress, step 775
Verified signaturec773a09 -
Training in progress, step 725
Verified signatureca7c0f7 -
Training in progress, step 700
Verified signature83715a6 -
Training in progress, step 675
Verified signature3325a1f -
Training in progress, step 650
Verified signature02bb705 -
Training in progress, step 625
Verified signature31068dc -
Training in progress, step 575
Verified signature3047d8d -
Training in progress, step 550
Verified signatureb21f751 -
Training in progress, step 525
Verified signaturea12c4c1 -
Training in progress, step 500
Verified signaturec04ce92 -
Training in progress, step 475
Verified signatured226847 -
Training in progress, step 450
Verified signature02d4a4f -
Training in progress, step 400
Verified signaturedd247b6 -
Training in progress, step 350
Verified signature19d2528 -
Training in progress, step 325
Verified signaturea78e71f -
Training in progress, step 300
Verified signature84b980f -
Training in progress, step 275
Verified signaturec71090b -
Training in progress, step 250
Verified signaturea069842 -
Training in progress, step 225
Verified signature8d59ccf -
Training in progress, step 200
Verified signature9dca6f7 -
Training in progress, step 175
Verified signature1378476 -
Training in progress, step 150
Verified signaturea8ee48e -
Training in progress, step 125
Verified signature1c38b41 -
Training in progress, step 100
Verified signatureab9c493 -
Training in progress, step 25
Verified signature7729df8 -
Training in progress, step 1300
Verified signature83f80d2 -
Training in progress, step 1275
Verified signature957ad3d -
Training in progress, step 1250
Verified signature5f36b0c -
Training in progress, step 1200
Verified signature6552a06 -
Training in progress, step 1175
Verified signaturee8ff6de -
Training in progress, step 1150
Verified signature366690d -
Training in progress, step 1125
Verified signature97bdac5