indonlp/cendol_collection_v2
Viewer • Updated • 12.8M • 826 • 9
How to use lumicero/llama-wikindo-lora with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-3B-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "lumicero/llama-wikindo-lora")How to use lumicero/llama-wikindo-lora with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="lumicero/llama-wikindo-lora") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("lumicero/llama-wikindo-lora", dtype="auto")How to use lumicero/llama-wikindo-lora with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "lumicero/llama-wikindo-lora"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lumicero/llama-wikindo-lora",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/lumicero/llama-wikindo-lora
How to use lumicero/llama-wikindo-lora with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "lumicero/llama-wikindo-lora" \
--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": "lumicero/llama-wikindo-lora",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "lumicero/llama-wikindo-lora" \
--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": "lumicero/llama-wikindo-lora",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use lumicero/llama-wikindo-lora with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lumicero/llama-wikindo-lora to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lumicero/llama-wikindo-lora to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lumicero/llama-wikindo-lora to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="lumicero/llama-wikindo-lora",
max_seq_length=2048,
)How to use lumicero/llama-wikindo-lora with Docker Model Runner:
docker model run hf.co/lumicero/llama-wikindo-lora
Apache license 2.0This model was trained 2x faster with Unsloth.
| Metrics | Random Sampling (This repo) | Uniform Sampling | Clusterclip Sampling |
|---|---|---|---|
| BLEU (Mean ± Std) | 20.5852 ± 9.0977 | 20.5419 ± 7.1707 | 22.2123 ± 6.2882 |
| ROUGE-1 (Mean ± Std) | 0.2558 ± 0.0010 | 0.2493 ± 0.0027 | 0.2536 ± 0.0003 |
| ROUGE-2 (Mean ± Std) | 0.1388 ± 0.0012 | 0.1325 ± 0.0036 | 0.1366 ± 0.0034 |
| ROUGE-L (Mean ± Std) | 0.2256 ± 0.0013 | 0.2197 ± 0.0028 | 0.2223 ± 0.0011 |
| F1 Bert-Score (Mean ± Std) | 0.8713 ± 0.0003 | 0.8694 ± 0.0009 | 0.8703 ± 0.0007 |
Base model
meta-llama/Llama-3.2-3B-Instruct