Text Generation
Transformers
Safetensors
llama
axolotl
dpo
trl
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use HumanLLMs/Human-Like-LLama3-8B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HumanLLMs/Human-Like-LLama3-8B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HumanLLMs/Human-Like-LLama3-8B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HumanLLMs/Human-Like-LLama3-8B-Instruct") model = AutoModelForCausalLM.from_pretrained("HumanLLMs/Human-Like-LLama3-8B-Instruct") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HumanLLMs/Human-Like-LLama3-8B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HumanLLMs/Human-Like-LLama3-8B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HumanLLMs/Human-Like-LLama3-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HumanLLMs/Human-Like-LLama3-8B-Instruct
- SGLang
How to use HumanLLMs/Human-Like-LLama3-8B-Instruct 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 "HumanLLMs/Human-Like-LLama3-8B-Instruct" \ --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": "HumanLLMs/Human-Like-LLama3-8B-Instruct", "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 "HumanLLMs/Human-Like-LLama3-8B-Instruct" \ --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": "HumanLLMs/Human-Like-LLama3-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HumanLLMs/Human-Like-LLama3-8B-Instruct with Docker Model Runner:
docker model run hf.co/HumanLLMs/Human-Like-LLama3-8B-Instruct
minor change
Browse files
README.md
CHANGED
|
@@ -4,10 +4,9 @@ tags:
|
|
| 4 |
- axolotl
|
| 5 |
- dpo
|
| 6 |
- trl
|
| 7 |
-
- generated_from_trainer
|
| 8 |
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 9 |
datasets:
|
| 10 |
-
- HumanLLMs/
|
| 11 |
model-index:
|
| 12 |
- name: Humanish-LLama3.1-8B-Instruct
|
| 13 |
results:
|
|
@@ -24,7 +23,8 @@ model-index:
|
|
| 24 |
value: 64.98
|
| 25 |
name: strict accuracy
|
| 26 |
source:
|
| 27 |
-
url:
|
|
|
|
| 28 |
name: Open LLM Leaderboard
|
| 29 |
- task:
|
| 30 |
type: text-generation
|
|
@@ -39,7 +39,8 @@ model-index:
|
|
| 39 |
value: 28.01
|
| 40 |
name: normalized accuracy
|
| 41 |
source:
|
| 42 |
-
url:
|
|
|
|
| 43 |
name: Open LLM Leaderboard
|
| 44 |
- task:
|
| 45 |
type: text-generation
|
|
@@ -54,7 +55,8 @@ model-index:
|
|
| 54 |
value: 8.46
|
| 55 |
name: exact match
|
| 56 |
source:
|
| 57 |
-
url:
|
|
|
|
| 58 |
name: Open LLM Leaderboard
|
| 59 |
- task:
|
| 60 |
type: text-generation
|
|
@@ -69,7 +71,8 @@ model-index:
|
|
| 69 |
value: 0.78
|
| 70 |
name: acc_norm
|
| 71 |
source:
|
| 72 |
-
url:
|
|
|
|
| 73 |
name: Open LLM Leaderboard
|
| 74 |
- task:
|
| 75 |
type: text-generation
|
|
@@ -81,10 +84,11 @@ model-index:
|
|
| 81 |
num_few_shot: 0
|
| 82 |
metrics:
|
| 83 |
- type: acc_norm
|
| 84 |
-
value: 2
|
| 85 |
name: acc_norm
|
| 86 |
source:
|
| 87 |
-
url:
|
|
|
|
| 88 |
name: Open LLM Leaderboard
|
| 89 |
- task:
|
| 90 |
type: text-generation
|
|
@@ -101,7 +105,8 @@ model-index:
|
|
| 101 |
value: 30.02
|
| 102 |
name: accuracy
|
| 103 |
source:
|
| 104 |
-
url:
|
|
|
|
| 105 |
name: Open LLM Leaderboard
|
| 106 |
---
|
| 107 |
<div align="center">
|
|
|
|
| 4 |
- axolotl
|
| 5 |
- dpo
|
| 6 |
- trl
|
|
|
|
| 7 |
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 8 |
datasets:
|
| 9 |
+
- HumanLLMs/Human-Like-DPO-Dataset
|
| 10 |
model-index:
|
| 11 |
- name: Humanish-LLama3.1-8B-Instruct
|
| 12 |
results:
|
|
|
|
| 23 |
value: 64.98
|
| 24 |
name: strict accuracy
|
| 25 |
source:
|
| 26 |
+
url: >-
|
| 27 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 28 |
name: Open LLM Leaderboard
|
| 29 |
- task:
|
| 30 |
type: text-generation
|
|
|
|
| 39 |
value: 28.01
|
| 40 |
name: normalized accuracy
|
| 41 |
source:
|
| 42 |
+
url: >-
|
| 43 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 44 |
name: Open LLM Leaderboard
|
| 45 |
- task:
|
| 46 |
type: text-generation
|
|
|
|
| 55 |
value: 8.46
|
| 56 |
name: exact match
|
| 57 |
source:
|
| 58 |
+
url: >-
|
| 59 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 60 |
name: Open LLM Leaderboard
|
| 61 |
- task:
|
| 62 |
type: text-generation
|
|
|
|
| 71 |
value: 0.78
|
| 72 |
name: acc_norm
|
| 73 |
source:
|
| 74 |
+
url: >-
|
| 75 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 76 |
name: Open LLM Leaderboard
|
| 77 |
- task:
|
| 78 |
type: text-generation
|
|
|
|
| 84 |
num_few_shot: 0
|
| 85 |
metrics:
|
| 86 |
- type: acc_norm
|
| 87 |
+
value: 2
|
| 88 |
name: acc_norm
|
| 89 |
source:
|
| 90 |
+
url: >-
|
| 91 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 92 |
name: Open LLM Leaderboard
|
| 93 |
- task:
|
| 94 |
type: text-generation
|
|
|
|
| 105 |
value: 30.02
|
| 106 |
name: accuracy
|
| 107 |
source:
|
| 108 |
+
url: >-
|
| 109 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=HumanLLMs/Humanish-LLama3.1-8B-Instruct
|
| 110 |
name: Open LLM Leaderboard
|
| 111 |
---
|
| 112 |
<div align="center">
|