Instructions to use ShadowFall09/FANNO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ShadowFall09/FANNO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ShadowFall09/FANNO")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ShadowFall09/FANNO") model = AutoModelForCausalLM.from_pretrained("ShadowFall09/FANNO", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ShadowFall09/FANNO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ShadowFall09/FANNO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ShadowFall09/FANNO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ShadowFall09/FANNO
- SGLang
How to use ShadowFall09/FANNO 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 "ShadowFall09/FANNO" \ --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": "ShadowFall09/FANNO", "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 "ShadowFall09/FANNO" \ --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": "ShadowFall09/FANNO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ShadowFall09/FANNO with Docker Model Runner:
docker model run hf.co/ShadowFall09/FANNO
FANNO
Model Details
Based on LlaMA2-7b.
Model Description
instruction-finetuning
autonomous-framework
data-annotation
FANNO is an innovative, fully autonomous, open-sourced framework designed to streamline the annotation process for instruction datasets without requiring pre-existing annotated data. Leveraging the capabilities of the Mistral-7b-instruct model, FANNO efficiently generates diverse and high-quality datasets through a structured process that includes document pre-screening, instruction generation, and response generation.
Key Features
Autonomous Annotation: Eliminates the need for manual annotations or costly API calls of proprietary LLMs, making the annotation process cost-effective and efficient.
High-Quality Data Generation: Produces datasets with diversity and complexity that are comparable to human-annotated or cleaned datasets, such as Alpaca-GPT4-Cleaned.
Open-Sourced Framework: Fully open-sourced, allowing the community to leverage and contribute to the ongoing improvement of the framework.
- Downloads last month
- 46