Run this model with HF Jobs
Run WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU 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/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU. 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/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU 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/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU. 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/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU. 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 WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU
- SGLang
How to use WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU 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 "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU" \ --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": "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU", "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 "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU" \ --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": "WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU with Docker Model Runner:
docker model run hf.co/WebOrganizer/LM-1b_1x-Sampling_over_Topics_for_MMLU
Ctrl+K
- 241 kB
- 136 kB
- 1.94 kB
- 149 kB
- 16.1 kB
- 735 kB
- 1.95 kB
- 201 kB
- 19.7 kB
- 1.09 MB
- 1.97 kB
- 226 kB
- 33 kB
- 1.98 MB
- 1.94 kB
- 149 kB
- 35.9 kB
- 1.4 MB
- 2.01 kB
- 395 kB
- 21.2 kB
- 2.39 MB
- 1.99 kB
- 214 kB
- 27.8 kB
- 1.64 MB
- 1.95 kB
- 149 kB
- 23.8 kB
- 994 kB
- 1.98 kB
- 149 kB
- 45.2 kB
- 1.78 MB
- 1.95 kB
- 149 kB
- 26.2 kB
- 1.07 MB
- 2 kB
- 258 kB
- 30.7 kB
- 2.38 MB
- 1.99 kB
- 152 kB
- 26.7 kB
- 1.1 MB
- 1.95 kB
- 149 kB
- 27 kB
- 912 kB