Text Generation
Transformers
Safetensors
llama
Generated from Trainer
conversational
text-generation-inference
Instructions to use nlile/PE-7b-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlile/PE-7b-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nlile/PE-7b-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-7b-full") model = AutoModelForCausalLM.from_pretrained("nlile/PE-7b-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-7b-full with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nlile/PE-7b-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-7b-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nlile/PE-7b-full
- SGLang
How to use nlile/PE-7b-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-7b-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-7b-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-7b-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-7b-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nlile/PE-7b-full with Docker Model Runner:
docker model run hf.co/nlile/PE-7b-full
Commit History
-
End of training
466b67d -
Model save
b5e5bdb -
Training in progress, step 6500
b7a7cf3 -
Training in progress, step 6400
667697b -
Training in progress, step 6300
b61fb6b -
Training in progress, step 6200
e548737 -
Training in progress, step 6100
bf32dc8 -
Training in progress, step 6000
b65cf3c -
Training in progress, step 5900
aefebc5 -
Training in progress, step 5800
c90454a -
Training in progress, step 5700
fa9a33e -
Training in progress, step 5600
9409461 -
Training in progress, step 5500
dc913a4 -
Training in progress, step 5400
bb5a201 -
Training in progress, step 5300
97b4d44 -
Training in progress, step 5200
6aa331a -
Training in progress, step 5100
3145071 -
Training in progress, step 5000
686e644 -
Training in progress, step 4900
b0b4c0a -
Training in progress, step 4800
383ef62 -
Training in progress, step 4700
22001f4 -
Training in progress, step 4600
5a146a8 -
Training in progress, step 4500
971be2a
-
Training in progress, step 4400
550ee42 -
Training in progress, step 4300
abf40f7 -
Training in progress, step 4200
d260ee6 -
Training in progress, step 4100
f13b3a9 -
Training in progress, step 4000
322e30c -
Training in progress, step 3900
c082f79 -
Training in progress, step 3800
950a262 -
Training in progress, step 3700
d25479d -
Training in progress, step 3600
9985805 -
Training in progress, step 3500
74f0d27 -
Training in progress, step 3400
ec8026d -
Training in progress, step 3300
42fa9f2 -
Training in progress, step 3200
fd9b234 -
Training in progress, step 3100
e989b71 -
Training in progress, step 3000
dc484ac -
Training in progress, step 2900
a4f2970 -
Training in progress, step 2800
1d6d6ab -
Training in progress, step 2700
a23c3c7 -
Training in progress, step 2600
09b14cf -
Training in progress, step 2500
47be8fd -
Training in progress, step 2400
86ee021 -
Training in progress, step 2300
06aa1e8 -
Training in progress, step 2200
b0c5cf2 -
Training in progress, step 2100
74044b6 -
Training in progress, step 2000
bb1be39 -
Training in progress, step 1900
6569176 -
Training in progress, step 1800
7b0d4b7