Text Generation
Transformers
Safetensors
mistral
Merge
mergekit
lazymergekit
mlabonne/AlphaMonarch-7B
mlabonne/NeuralMonarch-7B
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use Kukedlc/NeuralMaxime-7B-slerp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kukedlc/NeuralMaxime-7B-slerp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kukedlc/NeuralMaxime-7B-slerp") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Kukedlc/NeuralMaxime-7B-slerp") model = AutoModelForCausalLM.from_pretrained("Kukedlc/NeuralMaxime-7B-slerp", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kukedlc/NeuralMaxime-7B-slerp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kukedlc/NeuralMaxime-7B-slerp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kukedlc/NeuralMaxime-7B-slerp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Kukedlc/NeuralMaxime-7B-slerp
- SGLang
How to use Kukedlc/NeuralMaxime-7B-slerp 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 "Kukedlc/NeuralMaxime-7B-slerp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kukedlc/NeuralMaxime-7B-slerp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Kukedlc/NeuralMaxime-7B-slerp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kukedlc/NeuralMaxime-7B-slerp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Kukedlc/NeuralMaxime-7B-slerp with Docker Model Runner:
docker model run hf.co/Kukedlc/NeuralMaxime-7B-slerp
|
Download sample_data/README.md from Kukedlc/NeuralMaxime-7B-slerp: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/Kukedlc/NeuralMaxime-7B-slerp/resolve/main/sample_data/README.md
- Command line
-
hf download hf://Kukedlc/NeuralMaxime-7B-slerp/sample_data/README.md
-
curl -L -o README.md https://huggingface.co/Kukedlc/NeuralMaxime-7B-slerp/resolve/main/sample_data/README.md
930 Bytes
| This directory includes a few sample datasets to get you started. | |
| * `california_housing_data*.csv` is California housing data from the 1990 US | |
| Census; more information is available at: | |
| https://developers.google.com/machine-learning/crash-course/california-housing-data-description | |
| * `mnist_*.csv` is a small sample of the | |
| [MNIST database](https://en.wikipedia.org/wiki/MNIST_database), which is | |
| described at: http://yann.lecun.com/exdb/mnist/ | |
| * `anscombe.json` contains a copy of | |
| [Anscombe's quartet](https://en.wikipedia.org/wiki/Anscombe%27s_quartet); it | |
| was originally described in | |
| Anscombe, F. J. (1973). 'Graphs in Statistical Analysis'. American | |
| Statistician. 27 (1): 17-21. JSTOR 2682899. | |
| and our copy was prepared by the | |
| [vega_datasets library](https://github.com/altair-viz/vega_datasets/blob/4f67bdaad10f45e3549984e17e1b3088c731503d/vega_datasets/_data/anscombe.json). | |