Instructions to use DataPilot/ArrowPro-7B-RobinHood with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DataPilot/ArrowPro-7B-RobinHood with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DataPilot/ArrowPro-7B-RobinHood")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DataPilot/ArrowPro-7B-RobinHood") model = AutoModelForCausalLM.from_pretrained("DataPilot/ArrowPro-7B-RobinHood") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DataPilot/ArrowPro-7B-RobinHood with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DataPilot/ArrowPro-7B-RobinHood" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DataPilot/ArrowPro-7B-RobinHood", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DataPilot/ArrowPro-7B-RobinHood
- SGLang
How to use DataPilot/ArrowPro-7B-RobinHood 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 "DataPilot/ArrowPro-7B-RobinHood" \ --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": "DataPilot/ArrowPro-7B-RobinHood", "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 "DataPilot/ArrowPro-7B-RobinHood" \ --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": "DataPilot/ArrowPro-7B-RobinHood", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DataPilot/ArrowPro-7B-RobinHood with Docker Model Runner:
docker model run hf.co/DataPilot/ArrowPro-7B-RobinHood
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("DataPilot/ArrowPro-7B-RobinHood")
model = AutoModelForCausalLM.from_pretrained("DataPilot/ArrowPro-7B-RobinHood")ๆฆ่ฆ
ArrowPro-7B-RobinHoodใฏMistral็ณปใฎLocal-Novel-LLM-project/Vecteus-v1ใใใผในใซAItuberใAIใขใทในใฟใณใใฎ้ญใจใชใใใใซChatๆง่ฝใใใใณ้ซใใใญใณใใใคใณใธใงใฏใทใงใณ่ๆงใ้่ฆใใฆไฝใใใพใใใ
ใใณใใใผใฏ
ArrowPro-7B-RobinHoodใฏใใณใใใผใฏ(ELYZA-TASK100)ใซใใใฆ็ด3.84(LLaMa3-70Bๆบๆ )ใใใผใฏใใ7Bใซใใใฆๆฅๆฌ่ชๆง่ฝไธ็ไธใ้ๆใใพใใใ
How to use
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("DataPilot/ArrowPro-7B-RobinHood")
model = AutoModelForCausalLM.from_pretrained(
"DataPilot/ArrowPro-7B-RobinHood",
torch_dtype="auto",
)
model.eval()
if torch.cuda.is_available():
model = model.to("cuda")
def build_prompt(user_query):
sys_msg = "ใใชใใฏๆฅๆฌ่ชใ่ฉฑใๅช็งใชใขใทในใฟใณใใงใใๅ็ญใซใฏๅฟ
ใๆฅๆฌ่ชใง็ญใใฆใใ ใใใ"
template = """[INST] <<SYS>>
{}
<</SYS>>
{}[/INST]"""
return template.format(sys_msg,user_query)
# Infer with prompt without any additional input
user_inputs = {
"user_query": "ใพใฉใใฎใงไธ็ชใใใใใญใฃใฉใฏใ ใ๏ผ",
}
prompt = build_prompt(**user_inputs)
input_ids = tokenizer.encode(
prompt,
add_special_tokens=True,
return_tensors="pt"
)
tokens = model.generate(
input_ids.to(device=model.device),
max_new_tokens=500,
temperature=1,
top_p=0.95,
do_sample=True,
)
out = tokenizer.decode(tokens[0][input_ids.shape[1]:], skip_special_tokens=True).strip()
print(out)
่ฌ่พ
ๅ ใขใใซใ้็บใใฆใใใฆใใไบบใใฏใใใไปใพใง้ซใๅฟใใใฃใฆ้็บใใฆใใใใในใฆใฎไบบใซๅฟใใๆ่ฌใ็ณใไธใใพใใ
ใ้กใ
ใใฎใขใใซใๅฉ็จใใ้ใฏไปไบบใซ่ฟทๆใใใใชใใใใซๆๅคง้็ๆใใฆใใ ใใใ
- Downloads last month
- 11


# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DataPilot/ArrowPro-7B-RobinHood")