Run this model with HF Jobs
Run TencentARC/LLaMA-Pro-8B 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/TencentARC/LLaMA-Pro-8B. 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/TencentARC/LLaMA-Pro-8B 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/TencentARC/LLaMA-Pro-8B. 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/TencentARC/LLaMA-Pro-8B. 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 TencentARC/LLaMA-Pro-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TencentARC/LLaMA-Pro-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TencentARC/LLaMA-Pro-8B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TencentARC/LLaMA-Pro-8B") model = AutoModelForCausalLM.from_pretrained("TencentARC/LLaMA-Pro-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TencentARC/LLaMA-Pro-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TencentARC/LLaMA-Pro-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TencentARC/LLaMA-Pro-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TencentARC/LLaMA-Pro-8B
- SGLang
How to use TencentARC/LLaMA-Pro-8B 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 "TencentARC/LLaMA-Pro-8B" \ --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": "TencentARC/LLaMA-Pro-8B", "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 "TencentARC/LLaMA-Pro-8B" \ --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": "TencentARC/LLaMA-Pro-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TencentARC/LLaMA-Pro-8B with Docker Model Runner:
docker model run hf.co/TencentARC/LLaMA-Pro-8B
吳成岳 commited on
Commit ·
b35c20f
1
Parent(s): db3414c
revise config
Browse filesFiles changed (4)
123453 unmodified lines91011121314151617181920212223{"_name_or_path": "/group/40005/chengyuewu/open-instruct/output/llama-7b-add-8-3e-4-continue-ft-stack-python","architectures": ["LlamaForCausalLM"],3 unmodified lines"hidden_size": 4096,"initializer_range": 0.02,"intermediate_size": 11008,"max_position_embeddings": 16384,"max_sequence_length": 16384,"model_type": "llama","num_attention_heads": 32,"num_hidden_layers": 40,"num_key_value_heads": 32,"pad_token_id": 0,"pretraining_tp": 1,"rms_norm_eps": 1e-06,"rope_scaling": null,"rope_theta": 10000.0,"tie_word_embeddings": false,123453 unmodified lines9101112131415161718192021{"_name_or_path": "TencentARC/LLaMA_Pro","architectures": ["LlamaForCausalLM"],3 unmodified lines"hidden_size": 4096,"initializer_range": 0.02,"intermediate_size": 11008,"max_position_embeddings": 4096,"model_type": "llama","num_attention_heads": 32,"num_hidden_layers": 40,"num_key_value_heads": 32,"pretraining_tp": 1,"rms_norm_eps": 1e-05,"rope_scaling": null,"rope_theta": 10000.0,"tie_word_embeddings": false,
1234567{"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"pad_token_id": 0,"transformers_version": "4.33.3"}12345678910{"bos_token_id": 1,"do_sample": true,"eos_token_id": 2,"max_length": 4096,"pad_token_id": 0,"temperature": 0.6,"top_p": 0.9,"transformers_version": "4.33.3"}
1 unmodified line234567891011121314151 unmodified line171819202122231 unmodified line"bos_token": {"content": "<s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"eos_token": {"content": "</s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},1 unmodified line"unk_token": {"content": "<unk>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false}1 unmodified line234567891011121314151 unmodified line171819202122231 unmodified line"bos_token": {"content": "<s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"eos_token": {"content": "</s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},1 unmodified line"unk_token": {"content": "<unk>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false}
4 unmodified lines5678910112 unmodified lines141516171819202122232425261 unmodified line282930313233344 unmodified lines"__type": "AddedToken","content": "<s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},2 unmodified lines"__type": "AddedToken","content": "</s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"legacy": true,"model_max_length": 2048,"pad_token": null,"sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "LlamaTokenizer",1 unmodified line"__type": "AddedToken","content": "<unk>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},4 unmodified lines5678910112 unmodified lines14151617181920212223242526271 unmodified line293031323334354 unmodified lines"__type": "AddedToken","content": "<s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},2 unmodified lines"__type": "AddedToken","content": "</s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"legacy": false,"model_max_length": 1000000000000000019884624838656,"pad_token": null,"padding_side": "right","sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "LlamaTokenizer",1 unmodified line"__type": "AddedToken","content": "<unk>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},
config.json+3-5
generation_config.json+4-1
special_tokens_map.json+3-3
tokenizer_config.json+6-5