Instructions to use xu3kev/pbe-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xu3kev/pbe-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xu3kev/pbe-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xu3kev/pbe-lora") model = AutoModelForCausalLM.from_pretrained("xu3kev/pbe-lora") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use xu3kev/pbe-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xu3kev/pbe-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xu3kev/pbe-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xu3kev/pbe-lora
- SGLang
How to use xu3kev/pbe-lora 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 "xu3kev/pbe-lora" \ --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": "xu3kev/pbe-lora", "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 "xu3kev/pbe-lora" \ --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": "xu3kev/pbe-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use xu3kev/pbe-lora with Docker Model Runner:
docker model run hf.co/xu3kev/pbe-lora
Ctrl+K
- gcp_models
- lora-logo_adapt_real_fix_continue_filter_line_12_ds7b_ds33i_lr_0.0002_alpha_512_r_512
- lora-logo_fix_full_deepseek33b_ds33i_epoch3_lr_0.0002_alpha_512_r_512_merged
- lora-logo_fix_full_deepseek33b_gpt35i_epoch3_lr_0.0002_alpha_512_r_512_merged
- lora-logo_fix_full_deepseek33b_gpt35i_lr_0.0002_alpha_1024_r_1024_merged
- lora-logo_fix_full_deepseek33b_gpt35i_lr_0.0002_alpha_512_r_512_merged
- lora-logo_fix_full_deepseek7b_ds33i_lr_0.0002_alpha_1024_r_1024_merged
- lora-logo_fix_full_deepseek7b_ds33i_lr_0.0002_alpha_512_r_512_merged
- qq_sample_code_images_train_subset_50
- 2.17 kB
- 48.6 MB xet
- 719 Bytes
- 20.1 MB xet
- 48.3 MB xet
- 47.3 MB xet
- 48.7 MB xet
- 68.2 MB xet
- 42.8 MB xet
- 14.4 MB xet
- 126 Bytes
- 77.8 kB
- 65.2 kB
- 69.3 kB
- 65.2 kB
- 65 kB
- 65.4 kB
- 63.7 kB
- 65.7 kB
- 72.7 kB
- 69.8 kB
- 68.4 kB
- 69.5 kB
- 65.7 kB
- 65 kB
- 77.8 kB
- 64 kB
- 67 kB
- 65.2 kB
- 64.3 kB
- 65.9 kB
- 64.7 kB
- 73.3 kB
- 76.7 kB
- 69.2 kB
- 65 kB
- 64.1 kB
- 71 kB
- 65.9 kB
- 74.7 kB
- 64.1 kB