Views
No views yet
config.json: Contains the model architecture configuration, such as hidden size, number of attention heads, hidden layers, and activation functions.generation_config.json: Specifies generation parameters, including max length and token behavior.model.safetensors: Stores the model weights in a safe and efficient format.special_tokens_map.json: Maps the special tokens used by the model, including <s>, </s>, <unk>, and </s> (for padding).tokenizer.json: Defines the tokenizer configuration, including vocabulary size and token mapping.tokenizer_config.json: Further configures the tokenizer, specifying token types, maximum sequence length, and other tokenizer options.float32 tensor typesafetensors package for loading model weights1git clone https://github.com/your-repo/micro-llama.git
2cd micro-llamapip install transformers safetensors torch1from transformers import LlamaForCausalLM, LlamaTokenizer
2
3tokenizer = LlamaTokenizer.from_pretrained("UnieAI-Wilson/micro-llama-0-dev")
4model = LlamaForCausalLM.from_pretrained("UnieAI-Wilson/micro-llama-0-dev", torch_dtype="float16")
5
6inputs = tokenizer("Your text here", return_tensors="pt")
7outputs = model.generate(**inputs)
8print(tokenizer.decode(outputs[0], skip_special_tokens=True))