Instructions to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Salesforce/Llama-xLAM-2-8b-fc-r") model = PeftModel.from_pretrained(base_model, "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like") - Transformers
How to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like
- SGLang
How to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like 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 "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like" \ --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": "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like", "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 "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like" \ --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": "a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like with Docker Model Runner:
docker model run hf.co/a3ilab-llm-uncertainty/xlam_1epoch_pythonic5e-6_bfcl_like
Ctrl+K
- checkpoint-10
- checkpoint-14
- checkpoint-21
- checkpoint-28
- checkpoint-35
- checkpoint-4
- checkpoint-42
- checkpoint-49
- checkpoint-5
- checkpoint-56
- checkpoint-6
- checkpoint-60
- checkpoint-7
- checkpoint-8
- checkpoint-9
- final
- plots
- runs
- 2.6 kB
- 5.22 kB
- 892 Bytes
- 27.3 MB xet
- 6.04 kB
- 6.04 kB
- 512 Bytes
- 17.2 MB xet
- 54.1 kB
- 3.34 kB
- 5.3 kB xet
- 599 Bytes