Downloads · 30 days
25
35% of all-time downloads
Nurture-intelligence/kEy-llama3.1-8b-v0.1
kEy-llama3.1-8b-v0.1 is a text generation model from Nurture-intelligence. Use it when you need the model to write or continue text. The card lists the license as llama3.1.
The purpose of this model is to create a base model for creating Nurture Intelligence. After merging a model that is good at ASEAN language, a model that is good at Japanese language, and a model with high basic intel…
Downloads · 30 days
25
35% of all-time downloads
All-time downloads
72
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
The purpose of this model is to create a base model for creating Nurture Intelligence. After merging a model that is good at ASEAN language, a model that is good at Japanese language, and a model with high basic intelligence, the instruct Models trained on the dataset.
We would like to thank all those who created the original model!
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "Nurture-intelligence/kEy-llama3.1-8b-v0.1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
messages = [
{"role": "user", "content": "自己成長するLLMを作るにあたって大切なことを5つおしえてください。"},
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(input_ids,
do_sample=True,
temperature=0.2, ## Recommend 0.6 or lower
max_new_tokens=1024
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))
The following YAML configuration was used to produce this model: ```yaml
models: model: meditsolutions/Llama-3.1-MedIT-SUN-8B
- model: meditsolutions/Llama-3.1-MedIT-SUN-8B
parameters: weight: 1.0
weight: 1.0
- model: elyza/Llama-3-ELYZA-JP-8B
parameters: weight: 0.3
weight: 0.3
- model: aisingapore/llama3-8b-cpt-sea-lionv2.1-instruct
parameters: weight: 0.5
weight: 0.5
merge_method: breadcrumbs
base_model: meditsolutions/Llama-3.1-MedIT-SUN-8B
dtype: bfloat16