Run this model with HF Jobs
Run instruction-pretrain/InstructLM-1.3B 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/instruction-pretrain/InstructLM-1.3B. 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/instruction-pretrain/InstructLM-1.3B 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/instruction-pretrain/InstructLM-1.3B. 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/instruction-pretrain/InstructLM-1.3B. 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 instruction-pretrain/InstructLM-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use instruction-pretrain/InstructLM-1.3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="instruction-pretrain/InstructLM-1.3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("instruction-pretrain/InstructLM-1.3B") model = AutoModelForCausalLM.from_pretrained("instruction-pretrain/InstructLM-1.3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use instruction-pretrain/InstructLM-1.3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "instruction-pretrain/InstructLM-1.3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "instruction-pretrain/InstructLM-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/instruction-pretrain/InstructLM-1.3B
- SGLang
How to use instruction-pretrain/InstructLM-1.3B 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 "instruction-pretrain/InstructLM-1.3B" \ --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": "instruction-pretrain/InstructLM-1.3B", "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 "instruction-pretrain/InstructLM-1.3B" \ --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": "instruction-pretrain/InstructLM-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use instruction-pretrain/InstructLM-1.3B with Docker Model Runner:
docker model run hf.co/instruction-pretrain/InstructLM-1.3B
Commit History
-
Update README.md
Verified signatured3d1e0b
-
Update README.md
Verified signature8f55878 -
Update README.md
Verified signature1b24853
-
Update README.md
Verified signature28e3877
-
Update README.md
Verified signature003db71
-
Update README.md
Verified signaturea4b9e9c
-
Update README.md
Verified signatureef97ab8
-
Update README.md
Verified signatureff1447a
-
Update README.md
Verified signature4b90438
-
Update README.md
Verified signaturebd16fbb
-
Update README.md
Verified signature28552d7 -
Update README.md
Verified signature610a4cd
-
Update README.md
Verified signaturefb72698
-
Update README.md
Verified signature4efb16e
-
Update README.md
Verified signature2193d84
-
Update generation_config.json
Verified signature9b30a95 -
Update config.json
Verified signature27e471c -
Upload MistralForCausalLM
Verified signaturec5fc838 -
Delete model.safetensors.index.json
Verified signature6d6236a -
Delete model-00002-of-00002.safetensors
Verified signaturef05b739 -
Delete model-00001-of-00002.safetensors
Verified signatureddd41bb -
Upload MistralForCausalLM
Verified signature5d5e280 -
Delete model.safetensors.index.json
Verified signatured32230d -
Delete model-00002-of-00002.safetensors
Verified signature37aa46e -
Delete model-00001-of-00002.safetensors
Verified signature052c3fd -
Upload MistralForCausalLM
Verified signature9b6f17c -
Upload MistralForCausalLM
Verified signatured7bb549 -
Upload MistralForCausalLM
Verified signaturefa7ac91 -
Upload MistralForCausalLM
Verified signaturef4679e2
-
Update README.md
Verified signature79497cb -
Update README.md
Verified signature30c4a85 -
Upload model-00001-of-00002.safetensors
Verified signature4734105 -
Delete model-00001-of-00002.safetensors
Verified signature3a2cea9
-
Update generation_config.json
Verified signaturebe8e65d -
Update config.json
Verified signaturefe18f0e -
Upload MistralForCausalLM
Verified signature3eee3b9
-
Update README.md
Verified signaturee523cc2 -
Upload 7 files
Verified signature8c961dd -
initial commit
Verified signature8a3dab6