Instructions to use aixonlab/Grey-12b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aixonlab/Grey-12b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aixonlab/Grey-12b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aixonlab/Grey-12b") model = AutoModelForCausalLM.from_pretrained("aixonlab/Grey-12b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use aixonlab/Grey-12b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aixonlab/Grey-12b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aixonlab/Grey-12b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aixonlab/Grey-12b
- SGLang
How to use aixonlab/Grey-12b 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 "aixonlab/Grey-12b" \ --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": "aixonlab/Grey-12b", "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 "aixonlab/Grey-12b" \ --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": "aixonlab/Grey-12b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aixonlab/Grey-12b with Docker Model Runner:
docker model run hf.co/aixonlab/Grey-12b
Grey-12b
Grey-12b is a merged language model created by combining multiple models using the della_linear merge method, with Aether-12b as the base model.
Model Details 📊
- Developed by: AIXON Lab
- Model type: Merged Causal Language Model
- Language(s): English (primarily), may support other languages
- License: apache-2.0
- Repository: https://huggingface.co/aixonlab/Grey-12b
Model Architecture 🏗️
- Base model: aixonlab/Aether-12b
- Parameter count: ~12 billion
- Architecture specifics: Transformer-based language model
- Merge method: della_linear
Merged Models
- VAGOsolutions/SauerkrautLM-Nemo-12b-Instruct
- Weight: 0.33
- Density: 0.4
- cognitivecomputations/dolphin-2.9.3-mistral-nemo-12b
- Weight: 0.77
- Density: 0.8
Technical Specifications
- Dtype: float16
- Tokenizer source: base (aixonlab/Aether-12b)
- Merge parameters:
- Epsilon: 0.05
- Lambda: 1
Intended Use 🎯
As an advanced language model for various natural language processing tasks, including but not limited to text generation, question-answering, and analysis.
Ethical Considerations 🤔
As a merged model based on multiple sources, Grey-12b may inherit biases and limitations from its constituent models. Users should be aware of potential biases in generated content and use the model responsibly.
Performance and Evaluation
Performance metrics and evaluation results for Grey-12b are yet to be determined. Users are encouraged to contribute their findings and benchmarks.
Limitations and Biases
The model may exhibit biases present in its training data and constituent models. It's crucial to critically evaluate the model's outputs and use them in conjunction with human judgment.
Additional Information
For more details on the base model and constituent models, please refer to their respective model cards and documentation.
Acknowledgments 🙏
We acknowledge the contributions of:
- VAGOsolutions for the SauerkrautLM-Nemo-12b-Instruct model
- Cognitive Computations for the dolphin-2.9.3-mistral-nemo-12b model
How to Use
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("aixonlab/Grey-12b")
tokenizer = AutoTokenizer.from_pretrained("aixonlab/Grey-12b")
prompt = "Once upon a time"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
generated_ids = model.generate(input_ids, max_length=100)
generated_text = tokenizer.decode(generated_ids, skip_special_tokens=True)
print(generated_text)
- Downloads last month
- 3
Model tree for aixonlab/Grey-12b
Base model
Xclbr7/Arcanum-12b