cognitiv-agent_1 is a merge of the following models using
LazyMergekit:
1slices:
2 - sources:
3 - model: Or4cl3-1/Cognitive-Agent-Gemma_7b
4 layer_range: [0, 62]
5 - model: Or4cl3-1/agent_gemma_7b
6 layer_range: [0, 62]
7merge_method: slerp
8base_model: Or4cl3-1/Cognitive-Agent-Gemma_7b
9parameters:
10 t:
11 - filter: self_attn
12 value: [0, 0.5, 0.3, 0.7, 1]
13 - filter: mlp
14 value: [1, 0.5, 0.7, 0.3, 0]
15 - value: 0.5
16dtype: bfloat16
1!pip install -qU transformers accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "Or4cl3-1/cognitiv-agent_1"
8messages = [{"role": "user", "content": "What is a large language model?"}]
9
10tokenizer = AutoTokenizer.from_pretrained(model)
11prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12pipeline = transformers.pipeline(
13 "text-generation",
14 model=model,
15 torch_dtype=torch.float16,
16 device_map="auto",
17)
18
19outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
20print(outputs[0]["generated_text"])
Model Name: cognitiv-agent_1
Model Version: 1.0
Model Type: Text Generation
Model Architecture: Hybrid Learning Engine, Multimodal Communication Interface
The cognitiv-agent_1 model is a merge of two underlying models, Or4cl3-1/Cognitive-Agent-Gemma_7b and Or4cl3-1/agent_gemma_7b, utilizing the LazyMergekit technique. It is designed for text generation tasks and is capable of producing coherent and contextually relevant responses to user prompts.
This model is released under the Apache License, Version 2.0.
The model can be used for text generation tasks using the provided Python code snippet. It requires the transformers and accelerate libraries. Users can input prompts and receive generated text responses.
As with any AI model, there are ethical considerations to take into account when using the cognitiv-agent_1 model. These include:
For inquiries or support regarding the cognitiv-agent_1 model, please contact Or4cl3 AI Solutions at
contact@or4cl3.com.