Text Generation
Transformers
Safetensors
English
llama
language-model
causal-language-model
instruction-tuned
advanced
quantized
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned") model = AutoModelForCausalLM.from_pretrained("fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned
- SGLang
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned 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 "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" \ --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": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "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 "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" \ --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": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with Docker Model Runner:
docker model run hf.co/fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,40 +1,20 @@
|
|
| 1 |
-
|
| 2 |
-
library_name: transformers
|
| 3 |
-
tags:
|
| 4 |
-
- language-model
|
| 5 |
-
- causal-language-model
|
| 6 |
-
- instruction-tuned
|
| 7 |
-
- advanced
|
| 8 |
-
- quantized
|
| 9 |
-
datasets:
|
| 10 |
-
- custom-instruction-following-dataset
|
| 11 |
-
metrics:
|
| 12 |
-
- accuracy
|
| 13 |
-
- response-quality
|
| 14 |
license: mit
|
| 15 |
-
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 16 |
-
pipeline_tag: text-generation
|
| 17 |
language:
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
metrics:
|
| 30 |
-
- name: Accuracy
|
| 31 |
-
value: 89.5
|
| 32 |
-
source:
|
| 33 |
-
name: Open LLM Leaderboard
|
| 34 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard
|
| 35 |
---
|
| 36 |
|
| 37 |
-
# Model Card for fahmizainal17/
|
| 38 |
|
| 39 |
This model is a fine-tuned version of the Meta LLaMA 3B model, optimized for instruction-based tasks such as answering questions and engaging in conversation. It has been quantized to reduce memory usage, making it more efficient for inference, especially on hardware with limited resources. This model is part of the **Advanced LLaMA Workshop** and is designed to handle complex queries and provide detailed, human-like responses.
|
| 40 |
|
|
@@ -231,4 +211,4 @@ For further inquiries, please contact fahmizainal@invokeisdata.com.
|
|
| 231 |
|
| 232 |
```
|
| 233 |
|
| 234 |
-
---
|
|
|
|
| 1 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- meta-llama/Meta-Llama-3-8B-Instruct
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
library_name: transformers
|
| 9 |
+
tags:
|
| 10 |
+
- language-model
|
| 11 |
+
- causal-language-model
|
| 12 |
+
- instruction-tuned
|
| 13 |
+
- advanced
|
| 14 |
+
- quantized
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Model Card for fahmizainal17/Meta-Llama-3-8B-Instruct-advanced
|
| 18 |
|
| 19 |
This model is a fine-tuned version of the Meta LLaMA 3B model, optimized for instruction-based tasks such as answering questions and engaging in conversation. It has been quantized to reduce memory usage, making it more efficient for inference, especially on hardware with limited resources. This model is part of the **Advanced LLaMA Workshop** and is designed to handle complex queries and provide detailed, human-like responses.
|
| 20 |
|
|
|
|
| 211 |
|
| 212 |
```
|
| 213 |
|
| 214 |
+
---
|