Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| # train_grpo.py | |
| # | |
| # See https://github.com/willccbb/verifiers for ongoing developments | |
| # | |
| import re | |
| import torch | |
| from datasets import load_dataset, Dataset | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| from peft import LoraConfig | |
| from trl import GRPOConfig, GRPOTrainer |
Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggml-org/llama.cpp#5962
In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.
See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix
| # install DSPy: pip install dspy | |
| import dspy | |
| # Ollam is now compatible with OpenAI APIs | |
| # | |
| # To get this to work you must include `model_type='chat'` in the `dspy.OpenAI` call. | |
| # If you do not include this you will get an error. | |
| # | |
| # I have also found that `stop='\n\n'` is required to get the model to stop generating text after the ansewr is complete. | |
| # At least with mistral. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| class MyCell: UITableViewCell { | |
| let titleLabel = UILabel() | |
| let subtitleLabel = UILabel() | |
| override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { | |
| super.init(style: style, reuseIdentifier: reuseIdentifier) | |
| } | |
| required init?(coder: NSCoder) { nil } | |
| import Foundation | |
| public protocol NetworkLoggable { | |
| func log<T: CustomStringConvertible>( | |
| label: String, | |
| value: T?, | |
| level: NetworkLogger, | |
| function: StaticString, | |
| line: UInt, | |
| file: String |