i tested the q8 in lm studio( getting wrong output)
hey guys i tested the result in lm studio but its showing wrong answer is it because prompt issues ?
I tested int4 gguf in llama.cpp, checked the conversation template but still output seems not right
yeah in mine it seems like the tags are messed up? I'm still trying to determine if I can fix this on my end:
me:
write me a super tiny rust replacement for chrony
solar pro preview:
system<|endoftext|>; D., & Fuchs, M. A. (2015). The effect of teacher training on outcomes in instructional practices and student achievement: A meta-analysis. Psychological Bulletin, 47(3), 368–393.Find ArticleGoogle SchSchooler, K., Pfeiffer, J., Mullins, D., & Glassman, T. (2015). Teachers who can do: A case study of how teachers learned math skills in a university setting to improve their teaching effectiveness and students’ achievement. Journal of Research on Educational Development, 68(3), 9-24.Find ArticleGoogle SchSchott, D., & Gleicher, J. (1997). An investigation of the impacts of a university mathematics course for teachers upon teacher instructional practices and student achievement. Mathematics Education Journal, 10:18–36.Find ArticleGoogle
Searching for Categories
Looking for something else? Check out these categories that have relevant resources to technology-fposed problems or related closely to them.
This category is filled with articles about the development and testing of new technologies as well as case studies of existing technologies used in a unique manner. See all articles from this category.
These articles use one type of data collection methodology, designing their research according to the parameters that it dictates. See all articles from this methodology.<|endoftext|>s (23%) and the second most frequent site is the upper jaw with 57 dental implants in 18 patients (79%). The right side was more affected than left side both for location on face (68%) vs 3
me too, full of hallucination and wrong thinks.
Tested: RTX 3090 - LM Studio - 4q_k_m
looks like there is a issues with model i think!!
You have to disable the system prompt and only use user. Can you confirm if the system prompt is not being used?
Me too. Called marble, a marpie and then performed unrelated arithmetic, gguf q8
me too
完全无法正常使用。有人测试过f32模型也会有类似的问题吗?我试过不使用system,结果一样是胡乱输出
I know little about Rust, but how about this (test using chatllm.cpp):
________ __ __ __ __ ___
/ ____/ /_ ____ _/ /_/ / / / / |/ /_________ ____
/ / / __ \/ __ `/ __/ / / / / /|_/ // ___/ __ \/ __ \
/ /___/ / / / /_/ / /_/ /___/ /___/ / / // /__/ /_/ / /_/ /
\____/_/ /_/\__,_/\__/_____/_____/_/ /_(_)___/ .___/ .___/
You are served by Solar-Pro, /_/ /_/
with 22140032000 (22.1B) parameters.
You > write me a super tiny rust replacement for chrony
A.I. > Here's a very simplified version of a time synchronization tool, inspired by Crony's functionality. This Rust code will periodically check the system time against a specified NTP server and adjust it if necessary.
use std::net::TcpStream;
use std::io::Read;
use std::time::Duration;
use std::time::Instant;
use std::thread;
use std::thread::sleep;
const NTP_SERVER: &str = "http://your-ntp-server.com";
const CHECK_INTERVAL: Duration = Duration::from_secs(60);
fn get_ntp_time(server: &str) -> Option<f64> {
let mut stream = TcpStream::connect(server)?;
let _ = stream.write(b"\x1b"[0] as u8);
let _ = stream.read_to_end(&mut vec::from_raw_parts([0], 4));
let time = u32::from_bytes(vec![0, 0, 0, 0], little = true);
let epoch = (time / 1000) as f64;
let offset = (time % 1000) as f64;
let ntp_time = epoch + offset * 1e-9;
Some(ntp_diff := ntp_time - time.elapsed().as_secs() as f64)
.map(|diff| ntp_time - diff)
.unwrap_or(ntp_time)
}
fn main() {
let mut last_time = Option::<f64>::None;
while sleep(CHECK_INTERVAL).ok() {}
loop {
let ntp_time = get_ntp_time(NTP_SERVER);
if last_time.map_or(false, |t| ntp_time.map(|t| t > ntp_time)).unwrap_or(false) {
println!("System time is behind NTP server. Adjusting...");
// Adjust system time here
} else {
println!("System time is up to date.");
}
last_time = Some(ntp_time);
sleep(Duration::from_secs(1));
}
}
This code checks the system time against an NTP server every minute and adjusts it if the NTP server's time is ahead. Replace `http://your-ntp-server.com` with the URL of your NTP server. To adjust the system time, you would need to add the appropriate system calls, which are platform-dependent.
This is a very basic example and doesn't include error handling, logging, or many other features you would expect in a production-grade tool. However, it demonstrates the core functionality of a time synchronization tool in Rust.