Run this model with HF Jobs
Run HBboy/test 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/HBboy/test. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/HBboy/test on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/HBboy/test. 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/HBboy/test with Transformers and bitsandbytes. 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 HBboy/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HBboy/test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HBboy/test") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HBboy/test") model = AutoModelForCausalLM.from_pretrained("HBboy/test", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HBboy/test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HBboy/test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HBboy/test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HBboy/test
- SGLang
How to use HBboy/test 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 "HBboy/test" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HBboy/test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "HBboy/test" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HBboy/test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HBboy/test with Docker Model Runner:
docker model run hf.co/HBboy/test
Upload llamaboard_config.yaml with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778top.booster: autotop.checkpoint_path: nulltop.finetuning_type: fulltop.model_name: Qwen2.5-0.5B-Instructtop.quantization_bit: nonetop.quantization_method: bitsandbytestop.rope_scaling: nonetop.template: qwentrain.additional_target: ''train.apollo_rank: 16train.apollo_scale: 32train.apollo_target: alltrain.apollo_update_interval: 200train.badam_mode: layertrain.badam_switch_interval: 50train.badam_switch_mode: ascendingtrain.badam_update_ratio: 0.05train.batch_size: 2train.compute_type: bf16train.create_new_adapter: falsetrain.cutoff_len: 2048train.dataset:- xiaosui-train- identitytrain.dataset_dir: datatrain.ds_offload: falsetrain.ds_stage: nonetrain.extra_args: '{"optim": "adamw_torch"}'train.freeze_extra_modules: ''train.freeze_trainable_layers: 2train.freeze_trainable_modules: alltrain.galore_rank: 16train.galore_scale: 2train.galore_target: alltrain.galore_update_interval: 200train.gradient_accumulation_steps: 8train.learning_rate: 5e-5train.logging_steps: 5train.lora_alpha: 16train.lora_dropout: 0train.lora_rank: 8train.lora_target: ''train.loraplus_lr_ratio: 0train.lr_scheduler_type: cosinetrain.mask_history: falsetrain.max_grad_norm: '1.0'train.max_samples: '5000'train.neat_packing: falsetrain.neftune_alpha: 0train.num_train_epochs: '3.0'train.packing: falsetrain.ppo_score_norm: falsetrain.ppo_whiten_rewards: falsetrain.pref_beta: 0.1train.pref_ftx: 0train.pref_loss: sigmoidtrain.report_to:- wandbtrain.resize_vocab: falsetrain.reward_model: []train.save_steps: 100train.swanlab_api_key: ''train.swanlab_mode: cloudtrain.swanlab_project: llamafactorytrain.swanlab_run_name: ''train.swanlab_workspace: ''train.train_on_prompt: falsetrain.training_stage: Supervised Fine-Tuningtrain.use_apollo: falsetrain.use_badam: falsetrain.use_dora: falsetrain.use_galore: falsetrain.use_llama_pro: falsetrain.use_pissa: falsetrain.use_rslora: falsetrain.use_swanlab: falsetrain.val_size: 0train.warmup_steps: 4llamaboard_config.yamlAdded+78