Instructions to use GoofyLM/N1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GoofyLM/N1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GoofyLM/N1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GoofyLM/N1") model = AutoModelForCausalLM.from_pretrained("GoofyLM/N1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GoofyLM/N1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GoofyLM/N1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GoofyLM/N1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GoofyLM/N1
- SGLang
How to use GoofyLM/N1 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 "GoofyLM/N1" \ --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": "GoofyLM/N1", "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 "GoofyLM/N1" \ --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": "GoofyLM/N1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GoofyLM/N1 with Docker Model Runner:
docker model run hf.co/GoofyLM/N1
aquiffoo commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,19 +14,19 @@ tags:
|
|
| 14 |
|
| 15 |
# N1 - A Chain-of-Thought Language Model
|
| 16 |
|
| 17 |
-
N1 is a small
|
| 18 |
|
| 19 |
## Model Details
|
| 20 |
|
| 21 |
- **Architecture**: LLaMA-based
|
| 22 |
-
- **
|
| 23 |
- **Training Data**: Closed-source dataset
|
| 24 |
- **Special Features**: Chain-of-Thought reasoning capabilities
|
| 25 |
-
- **Note**: The model
|
| 26 |
|
| 27 |
## Intended Use
|
| 28 |
|
| 29 |
-
This model is designed for text generation tasks with a focus on reasoning through problems step-by-step (Chain-of-Thought).
|
| 30 |
|
| 31 |
## Limitations
|
| 32 |
|
|
|
|
| 14 |
|
| 15 |
# N1 - A Chain-of-Thought Language Model
|
| 16 |
|
| 17 |
+
N1 is a small, experimental Chain-of-Thought (COT) model based on the LLaMA architecture, developed by GoofyLM.
|
| 18 |
|
| 19 |
## Model Details
|
| 20 |
|
| 21 |
- **Architecture**: LLaMA-based
|
| 22 |
+
- **Parameter Count**: 135M
|
| 23 |
- **Training Data**: Closed-source dataset
|
| 24 |
- **Special Features**: Chain-of-Thought reasoning capabilities
|
| 25 |
+
- **Note**: The model often shows "schizophrenia"
|
| 26 |
|
| 27 |
## Intended Use
|
| 28 |
|
| 29 |
+
This model is designed for text generation tasks with a focus on reasoning through problems step-by-step (using its Chain-of-Thought).
|
| 30 |
|
| 31 |
## Limitations
|
| 32 |
|