Run this model with HF Jobs
Run fitleech/sn38-2023-01 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/fitleech/sn38-2023-01. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/fitleech/sn38-2023-01 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/fitleech/sn38-2023-01. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/fitleech/sn38-2023-01. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use fitleech/sn38-2023-01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fitleech/sn38-2023-01 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fitleech/sn38-2023-01")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("fitleech/sn38-2023-01", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fitleech/sn38-2023-01 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fitleech/sn38-2023-01" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fitleech/sn38-2023-01", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fitleech/sn38-2023-01
- SGLang
How to use fitleech/sn38-2023-01 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 "fitleech/sn38-2023-01" \ --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": "fitleech/sn38-2023-01", "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 "fitleech/sn38-2023-01" \ --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": "fitleech/sn38-2023-01", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fitleech/sn38-2023-01 with Docker Model Runner:
docker model run hf.co/fitleech/sn38-2023-01
Upload 2023 weights
Browse filesFiles changed (6)
- README.mdAdded+13
- config.jsonAdded+87
- generation_config.jsonAdded+10
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+8
12345678910111213---license: apache-2.0library_name: transformerspipeline_tag: text-generationtags:- sn38- chronollm- year-cutoff---
# sn38-2023-01
2023-cutoff language model. Weights are safetensors. `trust_remote_code=false`. Architecture `sn38-nanochrono`.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "vocab_size": 32768, "hidden_size": 1792, "intermediate_size": 7168, "num_hidden_layers": 28, "num_attention_heads": 14, "num_key_value_heads": 14, "max_position_embeddings": 2048, "rope_theta": 100000.0, "sliding_window": 512, "layer_types": [ "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention" ], "attention_multiplier": 1.2, "final_logit_softcapping": 15.0, "aux_layers": [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27 ], "aux_gate_dim": 12, "mix_gate_dim": 24, "tap_layer": 14, "use_cache": false, "architectures": [ "NanochronoForCausalLM" ], "output_hidden_states": false, "return_dict": true, "dtype": "bfloat16", "chunk_size_feed_forward": 0, "is_encoder_decoder": false, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "problem_type": null, "bos_token_id": 32759, "eos_token_id": 32763, "pad_token_id": 32763, "tie_word_embeddings": false, "model_type": "sn38-nanochrono", "output_attentions": false, "torch_dtype": "bfloat16"}12345678910{ "bos_token_id": 32759, "do_sample": true, "eos_token_id": 32763, "max_new_tokens": 256, "pad_token_id": 32763, "temperature": 0.8, "top_k": 50, "transformers_version": "5.14.1"}123version https://git-lfs.github.com/spec/v1oid sha256:b82c04c6c021850fa694280eca40ded30988728d0aaf66e6fe43923561e0fdfcsize 403704574812345678{ "bos_token": "<|bos|>", "eos_token": "<|assistant_end|>", "pad_token": "<|assistant_end|>", "clean_up_tokenization_spaces": false, "model_max_length": 2048, "add_bos_token": false}README.mdAdded+13
config.jsonAdded+87
generation_config.jsonAdded+10
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+8