Text Generation
Transformers
Safetensors
llama
text-generation-inference
causal-lm
conversational
custom_code
Instructions to use JaphetHernandez/llama_retrained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JaphetHernandez/llama_retrained with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JaphetHernandez/llama_retrained", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("JaphetHernandez/llama_retrained", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use JaphetHernandez/llama_retrained with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JaphetHernandez/llama_retrained" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JaphetHernandez/llama_retrained", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/JaphetHernandez/llama_retrained
- SGLang
How to use JaphetHernandez/llama_retrained 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 "JaphetHernandez/llama_retrained" \ --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": "JaphetHernandez/llama_retrained", "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 "JaphetHernandez/llama_retrained" \ --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": "JaphetHernandez/llama_retrained", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use JaphetHernandez/llama_retrained with Docker Model Runner:
docker model run hf.co/JaphetHernandez/llama_retrained
Upload model
Browse files- adapter_config.json +0 -6
- adapter_model.safetensors +2 -2
adapter_config.json
CHANGED
|
@@ -20,12 +20,6 @@
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
-
"k_proj",
|
| 24 |
-
"o_proj",
|
| 25 |
-
"q_proj",
|
| 26 |
-
"v_proj",
|
| 27 |
-
"gate_proj",
|
| 28 |
-
"down_proj",
|
| 29 |
"up_proj"
|
| 30 |
],
|
| 31 |
"task_type": "text-generation-inference",
|
|
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"up_proj"
|
| 24 |
],
|
| 25 |
"task_type": "text-generation-inference",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe427e8a19b706981fc143476aaad1b7f31b8351c6cb4e0dccbc6e976100fb1a
|
| 3 |
+
size 1061179520
|