Text Generation
Transformers
Safetensors
llama
Generated from Trainer
conversational
text-generation-inference
Instructions to use nlile/PE-13b-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlile/PE-13b-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nlile/PE-13b-full") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nlile/PE-13b-full") model = AutoModelForCausalLM.from_pretrained("nlile/PE-13b-full", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nlile/PE-13b-full with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nlile/PE-13b-full" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nlile/PE-13b-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nlile/PE-13b-full
- SGLang
How to use nlile/PE-13b-full 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 "nlile/PE-13b-full" \ --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": "nlile/PE-13b-full", "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 "nlile/PE-13b-full" \ --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": "nlile/PE-13b-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nlile/PE-13b-full with Docker Model Runner:
docker model run hf.co/nlile/PE-13b-full
Commit History
-
Model save
4638d30 -
Training in progress, step 6500
77d34c4 -
Training in progress, step 6400
e8eff7f -
Training in progress, step 6300
56235fe -
Training in progress, step 6200
7d9b15b
-
Training in progress, step 6100
02e8345 -
Training in progress, step 6000
718c1c5 -
Training in progress, step 5900
e5048e0 -
Training in progress, step 5800
e902f09 -
Training in progress, step 5700
7a1e179 -
Training in progress, step 5600
ad0447c -
Training in progress, step 5500
df96632 -
Training in progress, step 5400
0c3f4ed -
Training in progress, step 5300
d497ee9 -
Training in progress, step 5200
d093787 -
Training in progress, step 5100
e6b74ca -
Training in progress, step 5000
b4a854d -
Training in progress, step 4900
48d7735 -
Training in progress, step 4800
ce3a62e -
Training in progress, step 4700
b00a6e8 -
Training in progress, step 4600
24986af -
Training in progress, step 4500
fde0802 -
Training in progress, step 4400
0039aac -
Training in progress, step 4300
6d13e31 -
Training in progress, step 4200
931a277 -
Training in progress, step 4100
abe7e0b -
Training in progress, step 4000
04ef75e -
Training in progress, step 3900
0116b17 -
Training in progress, step 3800
1398aab -
Training in progress, step 3700
1b823bf -
Training in progress, step 3600
24e5676 -
Training in progress, step 3500
d3005eb -
Training in progress, step 3400
9c88612 -
Training in progress, step 3300
6d0021a -
Training in progress, step 3200
a1c0c38 -
Training in progress, step 3100
5256fb7 -
Training in progress, step 3000
bc0f5a1 -
Training in progress, step 2900
254e65a -
Training in progress, step 2800
ac15c3d -
Training in progress, step 2700
f36367f -
Training in progress, step 2600
7ab3f95 -
Training in progress, step 2500
a79bb22 -
Training in progress, step 2400
73ad3a5 -
Training in progress, step 2300
8ba9139 -
Training in progress, step 2200
053f8e0 -
Training in progress, step 2100
c0a0535 -
Training in progress, step 2000
84f1f84 -
Training in progress, step 1900
8b9f7d0 -
Training in progress, step 1800
7ba6dc0 -
Training in progress, step 1700
7b0d32f